http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95051
Revision: 95051
Author: reedy
Date: 2011-08-19 23:11:12 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like
the rest of the Special pages seem to
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialRandompage.php
Modified: trunk/phase3/includes/specials/SpecialRandompage.php
===================================================================
--- trunk/phase3/includes/specials/SpecialRandompage.php 2011-08-19
23:06:54 UTC (rev 95050)
+++ trunk/phase3/includes/specials/SpecialRandompage.php 2011-08-19
23:11:12 UTC (rev 95051)
@@ -33,8 +33,7 @@
protected $extra = array(); // Extra SQL statements
public function __construct( $name = 'Randompage' ){
- global $wgContentNamespaces;
- $this->namespaces = $wgContentNamespaces;
+ $this->namespaces = MWNamespace::getContentNamespaces();
parent::__construct( $name );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs