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:
7ced9bc
)
API: Don't unstub $wgContLang in ApiBase::getValidNamespaces()
author
Roan Kattouw
<catrope@users.mediawiki.org>
Fri, 26 Feb 2010 18:24:58 +0000
(18:24 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Fri, 26 Feb 2010 18:24:58 +0000
(18:24 +0000)
includes/api/ApiBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiBase.php
b/includes/api/ApiBase.php
index
39205bd
..
419d64c
100644
(file)
--- a/
includes/api/ApiBase.php
+++ b/
includes/api/ApiBase.php
@@
-521,10
+521,10
@@
abstract class ApiBase {
static $mValidNamespaces = null;
if ( is_null( $mValidNamespaces ) ) {
- global $wgC
ontLang
;
- $mValidNamespaces = array(
);
- foreach ( array_keys( $wgC
ontLang->getNamespaces()
) as $ns ) {
- if ( $ns >
=
0 ) {
+ global $wgC
anonicalNamespaceNames
;
+ $mValidNamespaces = array(
NS_MAIN ); // Doesn't appear in $wgCanonicalNamespaceNames for some reason
+ foreach ( array_keys( $wgC
anonicalNamespaceNames
) as $ns ) {
+ if ( $ns > 0 ) {
$mValidNamespaces[] = $ns;
}
}