From a3dd8faa289ce3de2e7ece70c7da3016ff6f17dd Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 19 Aug 2011 23:11:12 +0000 Subject: [PATCH] Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like the rest of the Special pages seem to --- includes/specials/SpecialRandompage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/specials/SpecialRandompage.php b/includes/specials/SpecialRandompage.php index 633dc0c126..68a4a9b937 100644 --- a/includes/specials/SpecialRandompage.php +++ b/includes/specials/SpecialRandompage.php @@ -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 ); } -- 2.20.1