r71867 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r71866
|
r71867
|
r71868
>
Date:
03:03, 29 August 2010
Author:
werdna
Status:
ok
Tags:
Comment:
Fix bug introduced in untested
r71576
. getNamespaces() did not use getCanonicalNamespaces for backwards-compatibility with 1.16wmf4 :-)
Modified paths:
/trunk/phase3/languages/Language.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/languages/Language.php
—
—
@@ -262,6 +262,8 @@
263
263
}
264
264
265
265
# Sometimes a language will be localised but not actually exist on this wiki.
266
+ global $wgCanonicalNamespaceNames;
267
+ $validNamespaces = array_keys(MWNamespace::getCanonicalNamespaces());
266
268
foreach( $this->namespaceNames as $key => $text ) {
267
269
if ( !isset( $validNamespaces[$key] ) ) {
268
270
unset( $this->namespaceNames[$key] );
Follow-up revisions
Revision
Commit summary
Author
Date
r71868
Unmerging
r71867
. Merge-conflicts with some things Nikerabbit was doing. He b...
werdna
03:08, 29 August 2010
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r71576
Added a hook into MWNamespace::getCanonicalNamespaces() to provide safe way to...
nikerabbit
19:58, 24 August 2010
Status & tagging log
02:01, 30 January 2011
MarkAHershberger
(
talk
|
contribs
)
changed the
tags
for r71867
[
removed:
sam]
02:01, 30 January 2011
MarkAHershberger
(
talk
|
contribs
)
changed the
status
of r71867
[
removed:
new
added:
ok]
02:13, 26 January 2011
MarkAHershberger
(
talk
|
contribs
)
changed the
tags
for r71867
[
added:
sam]