From: Ævar Arnfjörð Bjarmason Date: Thu, 3 Nov 2005 01:29:02 +0000 (+0000) Subject: * Added a isMain() function that's the inverse of isTalk(), am I supposed to be bothe... X-Git-Tag: 1.6.0~1238 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=19fef3d49ef1c92ed2237963a289f45e7af0908c;p=lhc%2Fweb%2Fwiklou.git * Added a isMain() function that's the inverse of isTalk(), am I supposed to be bothered to type "!" ? --- diff --git a/includes/Namespace.php b/includes/Namespace.php index a95b7cc398..f1341cc561 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -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