* Follow-up r88740:
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 May 2011 10:11:06 +0000 (10:11 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 May 2011 10:11:06 +0000 (10:11 +0000)
* Fixed parse() arguments in getRevIncludes()
* Changed clearTagHook() to avoid preprocessed-xml cache corruption
* Check current version cache in getRevIncludes()

includes/parser/Parser.php

index 47151ab..5acf40c 100644 (file)
@@ -4531,6 +4531,7 @@ class Parser {
 
        /**
         * Remove a specific tag hook. Should not be called on $wgParser.
+        * Does not change the strip list.
         *
         * @param string $tag
         * @return void
@@ -4538,10 +4539,6 @@ class Parser {
        function clearTagHook( $tag ) {
                if ( isset( $this->mTagHooks[$tag] ) ) {
                        unset( $this->mTagHooks[$tag] );
-                       $key = array_search( $tag, $this->mStripList );
-                       if ( $key !== false ) {
-                               unset( $this->mStripList[$key] );
-                       }
                }
        }