From 19fef3d49ef1c92ed2237963a289f45e7af0908c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 3 Nov 2005 01:29:02 +0000 Subject: [PATCH] * Added a isMain() function that's the inverse of isTalk(), am I supposed to be bothered to type "!" ? --- includes/Namespace.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1