Explicitly use 0 like the other checks here
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 11 Jan 2008 05:06:10 +0000 (05:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 11 Jan 2008 05:06:10 +0000 (05:06 +0000)
includes/Title.php

index 74090b7..89d02d6 100644 (file)
@@ -1257,7 +1257,7 @@ class Title {
         */
        private function getTitleProtection() {
                // Can't protect pages in special namespaces
-               if ( $this->getNamespace() < NS_MAIN ) {
+               if ( $this->getNamespace() < 0 ) {
                        return false;
                }