X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=43bc2d8de3d84d44af363346aa40539380240a6a;hb=62c36e82cf424f6ef51b524b2da41ff798111d83;hp=4d9c495212111232645b046ad2c5b2775d2ac87a;hpb=1655c86faf49196f41aca75c8df80c0c4fa4fb90;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 4d9c495212..43bc2d8de3 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -86,11 +86,6 @@ MediaWiki\HeaderCallback::register(); * Load LocalSettings.php */ -if ( is_readable( "$IP/StartProfiler.php" ) ) { - // @deprecated since 1.32: Use LocalSettings.php instead. - require "$IP/StartProfiler.php"; -} - if ( defined( 'MW_CONFIG_CALLBACK' ) ) { call_user_func( MW_CONFIG_CALLBACK ); } else { @@ -774,7 +769,7 @@ if ( $wgCommandLineMode ) { wfDebug( $debug ); } -$wgMemc = wfGetMainCache(); +$wgMemc = ObjectCache::getLocalClusterInstance(); $messageMemc = wfGetMessageCacheStorage(); wfDebugLog( 'caches', @@ -794,9 +789,9 @@ $ps_globals = Profiler::instance()->scopedProfileIn( $fname . '-globals' ); /** * @var Language $wgContLang + * @deprecated since 1.32, use the ContentLanguage service directly */ -$wgContLang = Language::factory( $wgLanguageCode ); -$wgContLang->initContLang(); +$wgContLang = MediaWikiServices::getInstance()->getContentLanguage(); // Now that variant lists may be available... $wgRequest->interpolateTitle(); @@ -898,6 +893,7 @@ $wgOut = RequestContext::getMain()->getOutput(); // BackCompat /** * @var Parser $wgParser + * @deprecated since 1.32, use MediaWikiServices::getParser() instead */ $wgParser = new StubObject( 'wgParser', function () { return MediaWikiServices::getInstance()->getParser();