jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/371015 )

Change subject: Makes sure that parser tests works
......................................................................


Makes sure that parser tests works

Change-Id: I5cd4a4485b5bf5583a4bc3cb1372c55e9eaf2845
---
M includes/index/IndexContentHandler.php
1 file changed, 2 insertions(+), 4 deletions(-)

Approvals:
  jenkins-bot: Verified
  Tpt: Looks good to me, approved



diff --git a/includes/index/IndexContentHandler.php 
b/includes/index/IndexContentHandler.php
index a7eb709..c9d4979 100644
--- a/includes/index/IndexContentHandler.php
+++ b/includes/index/IndexContentHandler.php
@@ -38,11 +38,9 @@
        }
 
        private function buildParser() {
-               global $wgParser;
-               StubObject::unstub( $wgParser );
-               $parser = clone $wgParser;
+               $parser = new Parser();
                $parser->startExternalParse(
-                       null, $this->makeParserOptions( 'canonical' ), 
Parser::OT_PLAIN, true
+                       null, $this->makeParserOptions( 'canonical' ), 
Parser::OT_PLAIN
                );
                return $parser;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/371015
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5cd4a4485b5bf5583a4bc3cb1372c55e9eaf2845
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>
Gerrit-Reviewer: Tpt <thoma...@hotmail.fr>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to