minor fix -- $ns must be int before comparison
authorYuri Astrakhan <yurik@users.mediawiki.org>
Sat, 19 May 2007 01:38:25 +0000 (01:38 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Sat, 19 May 2007 01:38:25 +0000 (01:38 +0000)
includes/Title.php

index 1e2bff6..63b0485 100644 (file)
@@ -232,7 +232,7 @@ class Title {
                $t = new Title();
                $t->mInterwiki = '';
                $t->mFragment = '';
-               $t->mNamespace = intval( $ns );
+               $t->mNamespace = $ns = intval( $ns );
                $t->mDbkeyform = str_replace( ' ', '_', $title );
                $t->mArticleID = ( $ns >= 0 ) ? -1 : 0;
                $t->mUrlform = wfUrlencode( $t->mDbkeyform );