Skip to content

Commit

Permalink
Enable a wgReadOnly setting (#197)
Browse files Browse the repository at this point in the history
For https://phabricator.wikimedia.org/T298759
The API part of this is:
wbstack/api#301

The value of this setting will be a string or null.
  • Loading branch information
addshore committed Jan 17, 2022
1 parent eec7021 commit a9953a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wbstack/src/Settings/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@
$wgFavicon = "/favicon.ico";
}

// Readonly: null, or a string message for readonly mode & reason.
$wgReadOnly = $wikiInfo->getSetting('wgReadOnly');

// https://www.mediawiki.org/wiki/Manual:$wgFooterIcons
// Add the custom powered by icons....
// TODO the Wikibase one should be in Wikibase..
Expand Down

0 comments on commit a9953a1

Please sign in to comment.