X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FNamespace.php;h=ebb2bce6b3c0e43c538bbc1e1d184afad42a2923;hb=16ed0301cdf7443b79d93e5005b81b9934e58eb8;hp=dd67b55ab9e8cb9ca841fb08803f6946fa0036e9;hpb=c771fc9c96aacb44b86ade5ecca68334c5d8213f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Namespace.php b/includes/Namespace.php index dd67b55ab9..ebb2bce6b3 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -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; + } } -?> +