typo
[lhc/web/wiklou.git] / includes / MagicWord.php
index 0861e63..bb7b7c1 100644 (file)
@@ -42,6 +42,9 @@ define("MAG_NS", 25);
 define("MAG_LOCALURL", 26);
 define("MAG_LOCALURLE", 27);
 define("MAG_SERVER", 28);
+define("MAG_IMG_FRAMED", 29);
+define("MAG_PAGENAME", 30);
+define("MAG_NAMESPACE", 31);
 
 $wgVariableIDs = array(
        MAG_CURRENTMONTH,
@@ -53,7 +56,9 @@ $wgVariableIDs = array(
        MAG_NUMBEROFARTICLES,
        MAG_CURRENTMONTHNAMEGEN,
     MAG_SITENAME,
-       MAG_SERVER
+       MAG_SERVER,
+       MAG_PAGENAME,
+       MAG_NAMESPACE
 );
 
 class MagicWord {
@@ -105,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