dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee2f8f
)
Use MWNamespace::getContentNamespaces() (instead of $wgContentNamespaces) like the...
author
Sam Reed
<reedy@users.mediawiki.org>
Fri, 19 Aug 2011 23:11:12 +0000
(23:11 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Fri, 19 Aug 2011 23:11:12 +0000
(23:11 +0000)
includes/specials/SpecialRandompage.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialRandompage.php
b/includes/specials/SpecialRandompage.php
index
633dc0c
..
68a4a9b
100644
(file)
--- 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 );
}