[MediaWiki-commits] [Gerrit] mediawiki...ProofreadPage[master]: Makes sure that parser tests works

2017-08-10 Thread jenkins-bot (Code Review)
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 
Gerrit-Reviewer: Tpt 
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...ProofreadPage[master]: Makes sure that parser tests works

2017-08-10 Thread Tpt (Code Review)
Tpt has uploaded a new change for review. ( 
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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/15/371015/1

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: newchange
Gerrit-Change-Id: I5cd4a4485b5bf5583a4bc3cb1372c55e9eaf2845
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt 

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