[MediaWiki-commits] [Gerrit] mediawiki...VisualEditor[master]: Avoid using deprecated ParserCache::singleton()
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/376856 ) Change subject: Avoid using deprecated ParserCache::singleton() .. Avoid using deprecated ParserCache::singleton() It was deprecated in 1.30. Change-Id: I5bdb91e4f4fa57369177ffe61d9a8743e1d81346 --- M ApiVisualEditor.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Esanders: Looks good to me, approved jenkins-bot: Verified diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index f508f10..1fee911 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -480,7 +480,7 @@ if ( $params['paction'] !== 'wikitext' ) { $wikipage = WikiPage::factory( $title ); $popts = $wikipage->makeParserOptions( 'canonical' ); - $cached = ParserCache::singleton()->get( $article, $popts, true ); + $cached = MediaWikiServices::getInstance()->getParserCache()->get( $article, $popts, true ); $links = [ // Array of linked pages that are missing 'missing' => [], -- To view, visit https://gerrit.wikimedia.org/r/376856 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5bdb91e4f4fa57369177ffe61d9a8743e1d81346 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: LegoktmGerrit-Reviewer: Esanders Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...VisualEditor[master]: Avoid using deprecated ParserCache::singleton()
Legoktm has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/376856 ) Change subject: Avoid using deprecated ParserCache::singleton() .. Avoid using deprecated ParserCache::singleton() It was deprecated in 1.30. Change-Id: I5bdb91e4f4fa57369177ffe61d9a8743e1d81346 --- M ApiVisualEditor.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/56/376856/1 diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index f508f10..1fee911 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -480,7 +480,7 @@ if ( $params['paction'] !== 'wikitext' ) { $wikipage = WikiPage::factory( $title ); $popts = $wikipage->makeParserOptions( 'canonical' ); - $cached = ParserCache::singleton()->get( $article, $popts, true ); + $cached = MediaWikiServices::getInstance()->getParserCache()->get( $article, $popts, true ); $links = [ // Array of linked pages that are missing 'missing' => [], -- To view, visit https://gerrit.wikimedia.org/r/376856 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5bdb91e4f4fa57369177ffe61d9a8743e1d81346 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Legoktm___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits