From 07b52710d047dd1d2175f3969435076edca4c9ae Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 27 Mar 2024 15:15:41 +0100 Subject: [PATCH] T11999: Disable RequestWikiQueue outside of the meta wikis --- GlobalSettings.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GlobalSettings.php b/GlobalSettings.php index 4d417ac17c..a189337a4f 100644 --- a/GlobalSettings.php +++ b/GlobalSettings.php @@ -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; @@ -26,6 +27,11 @@ }; } +// T11999: Disable Special:RequestWikiQueue outside of metawiki/metawikibeta +if ( $wi->dbname !== 'metawiki' || $wi->dbname !== 'metawikibeta' ) { + $wgSpecialPages['RequestWikiQueue'] = DisabledSpecialPage::getCallback( 'RequestWikiQueue', 'createwiki-requestwikiqueue-disabled' ); +} + // Extensions if ( $wi->dbname !== 'ldapwikiwiki' && $wi->dbname !== 'srewiki' ) { wfLoadExtensions( [