From 4725a8f7f28c153607dc6e439a222de8bb89db5c Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 8 Jan 2007 16:31:52 +0000 Subject: [PATCH] Use Title::isContentPage() instead of a manual check --- includes/Article.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 6b4f527082..f36a674a12 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -471,12 +471,12 @@ class Article { * @return bool */ function isCountable( $text ) { - global $wgUseCommaCount, $wgContentNamespaces; + global $wgUseCommaCount; $token = $wgUseCommaCount ? ',' : '[['; return - array_search( $this->mTitle->getNamespace(), $wgContentNamespaces ) !== false - && ! $this->isRedirect( $text ) + $this->mTitle->isContentPage() + && !$this->isRedirect( $text ) && in_string( $token, $text ); } -- 2.20.1