X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=cddb4369f9e7a5bf2cd918a964d083e82cf893c9;hb=2873ccba9464db79bc7d6b0e5cd330703b919235;hp=c8910f42d20ba34186131b593c6f12b1a9fbd5d5;hpb=6593f76927558202414e67d4ee1435c96baea658;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index c8910f42d2..cddb4369f9 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -23,7 +23,6 @@ * * @file */ -use MediaWiki\MediaWikiServices; /** * This file is not a valid entry point, perform no further processing unless @@ -362,11 +361,6 @@ if ( $wgEnableEmail ) { $wgUsersNotifiedOnAllChanges = []; } -// Doesn't make sense to have if disabled. -if ( !$wgEnotifMinorEdits ) { - $wgHiddenPrefs[] = 'enotifminoredits'; -} - if ( $wgMetaNamespace === false ) { $wgMetaNamespace = str_replace( ' ', '_', $wgSitename ); } @@ -523,14 +517,6 @@ if ( !class_exists( 'AutoLoader' ) ) { require_once "$IP/includes/AutoLoader.php"; } -// Reset the global service locator, so any services that have already been created will be -// re-created while taking into account any custom settings and extensions. -MediaWikiServices::resetGlobalInstance( new GlobalVarConfig() ); - -// Define a constant that indicates that the bootstrapping of the service locator -// is complete. -define( 'MW_SERVICE_BOOTSTRAP_COMPLETE', 1 ); - // Install a header callback to prevent caching of responses with cookies (T127993) if ( !$wgCommandLineMode ) { header_register_callback( function () { @@ -688,7 +674,7 @@ if ( $wgCommandLineMode ) { Profiler::instance()->scopedProfileOut( $ps_misc ); $ps_memcached = Profiler::instance()->scopedProfileIn( $fname . '-memcached' ); -$wgMemc = ObjectCache::getLocalClusterInstance(); +$wgMemc = wfGetMainCache(); $messageMemc = wfGetMessageCacheStorage(); $parserMemc = wfGetParserCacheStorage();