* (bug 33525) clearTagHooks doesn't clear function hooks.
authorSam Reed <reedy@users.mediawiki.org>
Wed, 4 Jan 2012 21:30:06 +0000 (21:30 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 4 Jan 2012 21:30:06 +0000 (21:30 +0000)
* (bug 33523) Function tag hooks don't appear on Special:Version.

Patches by Nikola Kovacs

CREDITS
RELEASE-NOTES-1.19
includes/parser/Parser.php

diff --git a/CREDITS b/CREDITS
index fc3949e..2e4c7ff 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -150,6 +150,7 @@ following names for their contribution to the product.
 * nephele
 * Nik
 * Nx.devnull
+* Nikola Kovacs
 * Nikolaos S. Karastathis
 * Olaf Lenz
 * Olivier Finlay Beaton
index b80b52e..54b2525 100644 (file)
@@ -216,6 +216,8 @@ production.
   HTTPS when the local wiki is served over HTTPS
 * (bug 33482) - Api incorrectly calls ApiBase::parseMultiValue if allowed
   values is given as an array
+* (bug 33525) clearTagHooks doesn't clear function hooks.
+* (bug 33523) Function tag hooks don't appear on Special:Version.
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index 2faf860..99e934b 100644 (file)
@@ -4613,6 +4613,7 @@ class Parser {
         */
        function clearTagHooks() {
                $this->mTagHooks = array();
+               $this->mFunctionTagHooks = array();
                $this->mStripList = $this->mDefaultStripList;
        }
 
@@ -5154,7 +5155,7 @@ class Parser {
         * @return array
         */
        function getTags() {
-               return array_merge( array_keys( $this->mTransparentTagHooks ), array_keys( $this->mTagHooks ) );
+               return array_merge( array_keys( $this->mTransparentTagHooks ), array_keys( $this->mTagHooks ), array_keys( $this->mFunctionTagHooks ) );
        }
 
        /**