From: Sam Reed Date: Fri, 19 Aug 2011 23:11:12 +0000 (+0000) Subject: Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like the... X-Git-Tag: 1.31.0-rc.0~28157 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=a3dd8faa289ce3de2e7ece70c7da3016ff6f17dd;p=lhc%2Fweb%2Fwiklou.git Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like the rest of the Special pages seem to --- 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 ); }