Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like the...
authorSam Reed <reedy@users.mediawiki.org>
Fri, 19 Aug 2011 23:11:12 +0000 (23:11 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 19 Aug 2011 23:11:12 +0000 (23:11 +0000)
includes/specials/SpecialRandompage.php

index 633dc0c..68a4a9b 100644 (file)
@@ -33,8 +33,7 @@ class RandomPage extends SpecialPage {
        protected $extra = array(); // Extra SQL statements
 
        public function __construct( $name = 'Randompage' ){
-               global $wgContentNamespaces;
-               $this->namespaces = $wgContentNamespaces;
+               $this->namespaces = MWNamespace::getContentNamespaces();
                parent::__construct( $name );
        }