http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88741

Revision: 88741
Author:   aaron
Date:     2011-05-24 19:52:27 +0000 (Tue, 24 May 2011)
Log Message:
-----------
Follow-up r88740: forgot to commit this guy

Modified Paths:
--------------
    trunk/phase3/includes/parser/Parser.php

Modified: trunk/phase3/includes/parser/Parser.php
===================================================================
--- trunk/phase3/includes/parser/Parser.php     2011-05-24 19:51:39 UTC (rev 
88740)
+++ trunk/phase3/includes/parser/Parser.php     2011-05-24 19:52:27 UTC (rev 
88741)
@@ -4530,6 +4530,22 @@
        }
 
        /**
+        * Remove a specific tag hook. Should not be called on $wgParser.
+        *
+        * @param string $tag
+        * @return void
+        */
+       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] );
+                       }
+               }
+       }
+
+       /**
         * Create a function, e.g. {{sum:1|2|3}}
         * The callback function should have the form:
         *    function myParserFunction( &$parser, $arg1, $arg2, $arg3 ) { ... }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to