Skip to content

Commit

Permalink
T11999: Disable Special:RequestWikiQueue outside of metawiki (#5518)
Browse files Browse the repository at this point in the history
  • Loading branch information
redbluegreenhat committed Mar 27, 2024
1 parent 40896dd commit fb3e68b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GlobalSettings.php
Expand Up @@ -3,6 +3,7 @@
use MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider;
use MediaWiki\Extension\ConfirmEdit\Store\CaptchaCacheStore;
use MediaWiki\Html\Html;
use MediaWiki\SpecialPage\DisabledSpecialPage;
use MediaWiki\SpecialPage\SpecialPage;
use Miraheze\MirahezeMagic\MirahezeIRCRCFeedFormatter;

Expand All @@ -26,6 +27,11 @@
};
}

// T11999: Disable Special:RequestWikiQueue outside of metawiki
if ( $wi->dbname !== 'metawiki' ) {
$wgSpecialPages['RequestWikiQueue'] = DisabledSpecialPage::getCallback( 'RequestWikiQueue', 'createwiki-requestwikiqueue-disabled' );
}

// Extensions
if ( $wi->dbname !== 'ldapwikiwiki' && $wi->dbname !== 'srewiki' ) {
wfLoadExtensions( [
Expand Down

0 comments on commit fb3e68b

Please sign in to comment.