X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSetup.php;h=9f722afd866950a33f8ec24a13872a07c140ea2d;hb=5a1104444f3d71d3f696f130de79b315f86e15cc;hp=7cda14cd35b314dc90f3b4d301df8ecd5ae89ede;hpb=e3f6c10d87732c0c8a9bbd7bb57b6c964b92e29a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 7cda14cd35..9f722afd86 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -462,7 +462,7 @@ if ( $wgMaximalPasswordLength !== false ) { } // Backwards compatibility warning -if ( !$wgSessionsInObjectCache && !$wgSessionsInMemcached ) { +if ( !$wgSessionsInObjectCache ) { wfDeprecated( '$wgSessionsInObjectCache = false', '1.27' ); if ( $wgSessionHandler ) { wfDeprecated( '$wgSessionsHandler', '1.27' ); @@ -818,7 +818,9 @@ $wgOut = RequestContext::getMain()->getOutput(); // BackCompat /** * @var Parser $wgParser */ -$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], [ $wgParserConf ] ); +$wgParser = new StubObject( 'wgParser', function () { + return MediaWikiServices::getInstance()->getParser(); +} ); /** * @var Title $wgTitle