Fix for DynamicPageList, which registers a mixed-case tag name.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Jun 2006 06:41:32 +0000 (06:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Jun 2006 06:41:32 +0000 (06:41 +0000)
The new system needs tag names to be case-folded internally so
that tags are properly case-insensitive.

includes/Parser.php

index 6dacd60..2bfa482 100644 (file)
@@ -3664,6 +3664,7 @@ class Parser
         * @return The old value of the mTagHooks array associated with the hook
         */
        function setHook( $tag, $callback ) {
+               $tag = strtolower( $tag );
                $oldVal = @$this->mTagHooks[$tag];
                $this->mTagHooks[$tag] = $callback;