From: Kunal Mehta Date: Tue, 14 Aug 2018 23:22:15 +0000 (-0700) Subject: Deprecate $wgParser X-Git-Tag: 1.34.0-rc.0~4398^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=3f47d6df5700103c93c481f1ddf5fc79a8f0ca20;p=lhc%2Fweb%2Fwiklou.git Deprecate $wgParser Bug: T160811 Change-Id: I7bcf4bbd14268ec069d97848c016e0098eaf0be4 --- diff --git a/RELEASE-NOTES-1.32 b/RELEASE-NOTES-1.32 index e0aefe5e86..f71ebc0746 100644 --- a/RELEASE-NOTES-1.32 +++ b/RELEASE-NOTES-1.32 @@ -347,6 +347,7 @@ because of Phabricator reports. standard configuration, use MediaWikiServices::getPasswordFactory. * $wgContLang is deprecated, use MediaWikiServices::getContentLanguage() instead. +* $wgParser is deprecated, use MediaWikiServices::getParser() instead. === Other changes in 1.32 === * (T198811) The following tables have had their UNIQUE indexes turned into diff --git a/includes/Setup.php b/includes/Setup.php index 9923ae2c53..f8650fd837 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -898,6 +898,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();