Index: trunk/phase3/includes/specials/SpecialRandompage.php |
— | — | @@ -33,8 +33,7 @@ |
34 | 34 | protected $extra = array(); // Extra SQL statements |
35 | 35 | |
36 | 36 | public function __construct( $name = 'Randompage' ){ |
37 | | - global $wgContentNamespaces; |
38 | | - $this->namespaces = $wgContentNamespaces; |
| 37 | + $this->namespaces = MWNamespace::getContentNamespaces(); |
39 | 38 | parent::__construct( $name ); |
40 | 39 | } |
41 | 40 | |