Translations:Manual:$wgReadOnly/4/en

If set to a string in the "LocalSettings.php" file,  disallows editing, displaying the string given as the reason. The reason provided is preceded by the contents of $readonlyWarning.