* Added a isMain() function that's the inverse of isTalk(), am I supposed to be bothe...
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 3 Nov 2005 01:29:02 +0000 (01:29 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 3 Nov 2005 01:29:02 +0000 (01:29 +0000)
includes/Namespace.php

index a95b7cc..f1341cc 100644 (file)
@@ -62,6 +62,14 @@ class Namespace {
                return true;
        }
 
+       /**
+        * Check if the given namespace is not a talk page
+        * @return bool
+        */
+       function isMain( $index ) {
+               return ! Namespace::isTalk( $index );
+       }
+
        /**
         * Check if the give namespace is a talk page
         * @return bool