r95051 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95050‎ | r95051 | r95052 >
Date:23:11, 19 August 2011
Author:reedy
Status:ok
Tags:
Comment:
Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like the rest of the Special pages seem to
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRandompage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRandompage.php
@@ -33,8 +33,7 @@
3434 protected $extra = array(); // Extra SQL statements
3535
3636 public function __construct( $name = 'Randompage' ){
37 - global $wgContentNamespaces;
38 - $this->namespaces = $wgContentNamespaces;
 37+ $this->namespaces = MWNamespace::getContentNamespaces();
3938 parent::__construct( $name );
4039 }
4140

Status & tagging log