r55595 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55594‎ | r55595 | r55596 >
Date:15:03, 26 August 2009
Author:brion
Status:ok
Tags:
Comment:
Fix for error accessing uninitialized namespace aliases array... use the accessor, which lazy-initializes :)
Modified paths:
  • /trunk/phase3/maintenance/namespaceDupes.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/namespaceDupes.php
@@ -93,7 +93,7 @@
9494 foreach( $wgNamespaceAliases as $name => $ns ) {
9595 $spaces[$name] = $ns;
9696 }
97 - foreach( $wgContLang->namespaceAliases as $name => $ns ) {
 97+ foreach( $wgContLang->getNamespaceAliases() as $name => $ns ) {
9898 $spaces[$name] = $ns;
9999 }
100100

Status & tagging log