From: Brion Vibber Date: Thu, 1 Jun 2006 06:41:32 +0000 (+0000) Subject: Fix for DynamicPageList, which registers a mixed-case tag name. X-Git-Tag: 1.31.0-rc.0~56941 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=6711d4714ce4000c0016307786e3e6e314b28bc0;p=lhc%2Fweb%2Fwiklou.git Fix for DynamicPageList, which registers a mixed-case tag name. The new system needs tag names to be case-folded internally so that tags are properly case-insensitive. --- diff --git a/includes/Parser.php b/includes/Parser.php index 6dacd60dcc..2bfa48273c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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;