(bug 9575) Accept upload description from GET parameters
[lhc/web/wiklou.git] / includes / Namespace.php
index dd67b55..ebb2bce 100644 (file)
@@ -134,8 +134,18 @@ class Namespace {
        public static function isContent( $index ) {
                global $wgContentNamespaces;
                return $index == NS_MAIN || in_array( $index, $wgContentNamespaces );
-       }        
+       }
+       
+       /**
+        * Can pages in a namespace be watched?
+        *
+        * @param int $index
+        * @return bool
+        */
+       public static function isWatchable( $index ) {
+               return $index >= NS_MAIN;
+       }
         
 }
 
-?>
+