Use MWNamespace::getContentNamespaces() instead of $wgContentNamespaces in case of...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 18 Apr 2011 16:33:16 +0000 (16:33 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 18 Apr 2011 16:33:16 +0000 (16:33 +0000)
includes/SiteStats.php

index 25dfc2a..b603bfb 100644 (file)
@@ -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'
                        ),