From: Alexandre Emsenhuber Date: Mon, 18 Apr 2011 16:33:16 +0000 (+0000) Subject: Use MWNamespace::getContentNamespaces() instead of $wgContentNamespaces in case of... X-Git-Tag: 1.31.0-rc.0~30735 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=f1c63eb018da270527e0ac20d158856232e41714;p=lhc%2Fweb%2Fwiklou.git Use MWNamespace::getContentNamespaces() instead of $wgContentNamespaces in case of misconfiguration of the latter --- 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' ),