diff --git a/.phpcs.xml b/.phpcs.xml index 58bda6fe72..8dca4cccd1 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,7 +1,6 @@ - diff --git a/includes/ApiVisualEditor.php b/includes/ApiVisualEditor.php index 96aacc6bc4..d0ecdef2a0 100644 --- a/includes/ApiVisualEditor.php +++ b/includes/ApiVisualEditor.php @@ -407,8 +407,7 @@ class ApiVisualEditor extends ApiBase { if ( $params['editintro'] ) { $eiTitle = Title::newFromText( $params['editintro'] ); if ( $eiTitle instanceof Title && $eiTitle->exists() && $eiTitle->userCan( 'read' ) ) { - global $wgParser; - $notices[] = $wgParser->parse( + $notices[] = MediaWikiServices::getInstance()->getParser()->parse( '
{{:' . $eiTitle->getFullText() . '}}
', $title, new ParserOptions()