X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FSetup.php;h=43bc2d8de3d84d44af363346aa40539380240a6a;hp=9923ae2c532b777db26a5f72f51caf5cf3aa493d;hb=74d04edec385aa86ee01943b9a27475d79f74e78;hpb=9f6c47e7460e2e94fa9d815ef243bf1858cb724a diff --git a/includes/Setup.php b/includes/Setup.php index 9923ae2c53..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', @@ -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();