X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=bcdc1d57a200784d8f3a48c9d2eb86de5ab248d1;hb=9189db0c50cd4f755efc1d0ce061f6c04b236a40;hp=b4b6ce6e9c6abb4d399dcef0a4e67b996e7004c0;hpb=9eafd89011b9b031d902a4381e13254fb67e1e07;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index b4b6ce6e9c..bcdc1d57a2 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -492,7 +492,7 @@ $wgCanonicalNamespaceNames = [ /// @todo UGLY UGLY if ( is_array( $wgExtraNamespaces ) ) { - $wgCanonicalNamespaceNames = $wgCanonicalNamespaceNames + $wgExtraNamespaces; + $wgCanonicalNamespaceNames += $wgExtraNamespaces; } // Hard-deprecate setting $wgDummyLanguageCodes in LocalSettings.php @@ -690,8 +690,7 @@ if ( $wgMainWANCache === false ) { $wgMainWANCache = 'mediawiki-main-default'; $wgWANObjectCaches[$wgMainWANCache] = [ 'class' => WANObjectCache::class, - 'cacheId' => $wgMainCacheType, - 'channels' => [ 'purge' => 'wancache-main-default-purge' ] + 'cacheId' => $wgMainCacheType ]; } @@ -793,22 +792,6 @@ $wgContLang = MediaWikiServices::getInstance()->getContentLanguage(); // Now that variant lists may be available... $wgRequest->interpolateTitle(); -if ( !is_object( $wgAuth ) ) { - $wgAuth = new MediaWiki\Auth\AuthManagerAuthPlugin; - Hooks::run( 'AuthPluginSetup', [ &$wgAuth ] ); -} -if ( $wgAuth && !$wgAuth instanceof MediaWiki\Auth\AuthManagerAuthPlugin ) { - MediaWiki\Auth\AuthManager::singleton()->forcePrimaryAuthenticationProviders( [ - new MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider( [ - 'authoritative' => false, - ] ), - new MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider( $wgAuth ), - new MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider( [ - 'authoritative' => true, - ] ), - ], '$wgAuth is ' . get_class( $wgAuth ) ); -} - /** * @var MediaWiki\Session\SessionId|null $wgInitialSessionId The persistent * session ID (if any) loaded at startup @@ -898,7 +881,7 @@ $wgOut = RequestContext::getMain()->getOutput(); // BackCompat /** * @var Parser $wgParser - * @deprecated since 1.32, use MediaWikiServices::getParser() instead + * @deprecated since 1.32, use MediaWikiServices::getInstance()->getParser() instead */ $wgParser = new StubObject( 'wgParser', function () { return MediaWikiServices::getInstance()->getParser();