typo
[lhc/web/wiklou.git] / includes / MagicWord.php
index d1271dd..bb7b7c1 100644 (file)
@@ -42,9 +42,9 @@ define("MAG_NS", 25);
 define("MAG_LOCALURL", 26);
 define("MAG_LOCALURLE", 27);
 define("MAG_SERVER", 28);
-define("MAG_PAGENAME", 29);
-define("MAG_NAMESPACE", 30);
 define("MAG_IMG_FRAMED", 29);
+define("MAG_PAGENAME", 30);
+define("MAG_NAMESPACE", 31);
 
 $wgVariableIDs = array(
        MAG_CURRENTMONTH,
@@ -110,7 +110,7 @@ class MagicWord {
                $this->mRegexStart = "/^{$this->mBaseRegex}/{$case}";
                $this->mVariableRegex = str_replace( "\\$1", "([$variableClass]*?)", $this->mRegex );
                $this->mVariableStartToEndRegex = str_replace( "\\$1", "([$variableClass]*?)", 
-                       "/^{$this->mBaseRegex}$/{$case}" );
+                       "/^({$this->mBaseRegex})$/{$case}" );
        }
        
        # Gets a regex representing matching the word