fixed weird bug causing meta to fail spectacularly
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 23 May 2004 01:21:04 +0000 (01:21 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 23 May 2004 01:21:04 +0000 (01:21 +0000)
includes/Parser.php

index a25b447..2fddef0 100644 (file)
@@ -997,7 +997,7 @@ class Parser
                        } else {
                                $noslash=substr($m[1],1);
                        }
-                       if($wgNamespacesWithSubpages[$this->mTitle->getNamespace()]) { # subpages allowed here
+                       if(!empty($wgNamespacesWithSubpages[$this->mTitle->getNamespace()])) { # subpages allowed here
                                $link = $this->mTitle->getPrefixedText(). "/" . trim($noslash);
                                if( "" == $text ) {
                                        $text= $m[1];