Manual:$wgReadOnly
From MediaWiki.org
| Wiki locking: $wgReadOnly | |
|---|---|
| Disallows editing, displaying the string given as the reason. |
|
| Introduced in version: | pre 1.1.0 |
| Removed in version: | still in use |
| Allowed values: | (string), null/false |
| Default value: | null false, prior to 1.5.7 |
Other settings: Alphabetical | By Function
[edit] Details
If set to a string (e.g., in LocalSettings.php), $wgReadOnly disallows editing, displaying the string given as the reason. Functionally the same as $wgReadOnlyFile, but using a variable instead of a file.
Note that some of your installed extensions may write data nontheless.
$wgReadOnly = 'site maintenance';
The above example locks the database and provides a default statement on edit pages and also gives the included string 'site maintenance' as an explanation for why the database was locked.