diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /includes/parser/ParserDiffTest.php | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
Diffstat (limited to 'includes/parser/ParserDiffTest.php')
-rw-r--r-- | includes/parser/ParserDiffTest.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/includes/parser/ParserDiffTest.php b/includes/parser/ParserDiffTest.php index 174c1d61..32f5d068 100644 --- a/includes/parser/ParserDiffTest.php +++ b/includes/parser/ParserDiffTest.php @@ -29,7 +29,6 @@ class ParserDiffTest public $parsers; public $conf; public $shortOutput = false; - public $dtUniqPrefix; public function __construct( $conf ) { if ( !isset( $conf['parsers'] ) ) { @@ -43,12 +42,6 @@ class ParserDiffTest return; } - global $wgHooks; - static $doneHook = false; - if ( !$doneHook ) { - $doneHook = true; - $wgHooks['ParserClearState'][] = array( $this, 'onClearState' ); - } if ( isset( $this->conf['shortOutput'] ) ) { $this->shortOutput = $this->conf['shortOutput']; } @@ -126,18 +119,4 @@ class ParserDiffTest $parser->setFunctionHook( $id, $callback, $flags ); } } - - /** - * @param Parser $parser - * @return bool - */ - public function onClearState( &$parser ) { - // hack marker prefixes to get identical output - if ( !isset( $this->dtUniqPrefix ) ) { - $this->dtUniqPrefix = $parser->uniqPrefix(); - } else { - $parser->mUniqPrefix = $this->dtUniqPrefix; - } - return true; - } } |