From f1c63eb018da270527e0ac20d158856232e41714 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 18 Apr 2011 16:33:16 +0000 Subject: [PATCH] Use MWNamespace::getContentNamespaces() instead of $wgContentNamespaces in case of misconfiguration of the latter --- includes/SiteStats.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 25dfc2a638..b603bfbbee 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -293,12 +293,11 @@ class SiteStatsInit { * @return Integer */ public function articles() { - global $wgContentNamespaces; $this->mArticles = $this->db->selectField( 'page', 'COUNT(*)', array( - 'page_namespace' => $wgContentNamespaces, + 'page_namespace' => MWNamespace::getContentNamespaces(), 'page_is_redirect' => 0, 'page_len > 0' ), -- 2.20.1