Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -4702,19 +4702,6 @@ |
4703 | 4703 | } |
4704 | 4704 | |
4705 | 4705 | /** |
4706 | | - * Remove a specific tag hook. Should not be called on $wgParser. |
4707 | | - * Does not change the strip list. |
4708 | | - * |
4709 | | - * @param string $tag |
4710 | | - * @return void |
4711 | | - */ |
4712 | | - function clearTagHook( $tag ) { |
4713 | | - if ( isset( $this->mTagHooks[$tag] ) ) { |
4714 | | - unset( $this->mTagHooks[$tag] ); |
4715 | | - } |
4716 | | - } |
4717 | | - |
4718 | | - /** |
4719 | 4706 | * Create a function, e.g. {{sum:1|2|3}} |
4720 | 4707 | * The callback function should have the form: |
4721 | 4708 | * function myParserFunction( &$parser, $arg1, $arg2, $arg3 ) { ... } |
Index: trunk/extensions/FlaggedRevs/dataclasses/FRInclusionCache.php |
— | — | @@ -39,11 +39,7 @@ |
40 | 40 | if ( $pOut == false || !FlaggedRevs::parserOutputIsVersioned( $pOut ) ) { |
41 | 41 | $title = $article->getTitle(); |
42 | 42 | $pOpts = ParserOptions::newFromUser( $user ); // Note: tidy off |
43 | | - # Disable slow crap that doesn't matter for getting templates/files... |
44 | | - $parser = clone $wgParser; |
45 | | - $parser->clearTagHook( 'ref' ); |
46 | | - $parser->clearTagHook( 'references' ); |
47 | | - $pOut = $parser->parse( |
| 43 | + $pOut = $wgParser->parse( |
48 | 44 | $rev->getText(), $title, $pOpts, true, true, $rev->getId() ); |
49 | 45 | } |
50 | 46 | # Get the template/file versions used... |