r80679 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80678‎ | r80679 | r80680 >
Date:03:48, 21 January 2011
Author:catrope
Status:ok
Tags:
Comment:
(bug 26762) Fix order of namespace list
Modified paths:
  • /trunk/phase3/includes/Namespace.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Namespace.php
@@ -128,12 +128,10 @@
129129 static $namespaces = null;
130130 if ( $namespaces === null ) {
131131 global $wgExtraNamespaces, $wgCanonicalNamespaceNames;
 132+ $namespaces = array( NS_MAIN => '' ) + $wgCanonicalNamespaceNames;
132133 if ( is_array( $wgExtraNamespaces ) ) {
133 - $namespaces = $wgCanonicalNamespaceNames + $wgExtraNamespaces;
134 - } else {
135 - $namespaces = $wgCanonicalNamespaceNames;
 134+ $namespaces += $wgExtraNamespaces;
136135 }
137 - $namespaces[NS_MAIN] = '';
138136 wfRunHooks( 'CanonicalNamespaces', array( &$namespaces ) );
139137 }
140138 return $namespaces;

Follow-up revisions

RevisionCommit summaryAuthorDate
r807221.17: MFT r80324, r80326, r80328, r80339, r80350, r80351, r80355, r80358, r80...catrope23:00, 21 January 2011

Status & tagging log