r71467 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71466‎ | r71467 | r71468 >
Date:08:46, 23 August 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix yet another regression in r71342: NS_MAIN was dropped from valid namespaces, breaking at least opensearch
Modified paths:
  • /trunk/phase3/includes/Namespace.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Namespace.php
@@ -186,7 +186,7 @@
187187
188188 if ( is_null( $mValidNamespaces ) ) {
189189 foreach ( array_keys( self::getCanonicalNamespaces() ) as $ns ) {
190 - if ( $ns > 0 ) {
 190+ if ( $ns >= 0 ) {
191191 $mValidNamespaces[] = $ns;
192192 }
193193 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r71342Trying to clean up the mess with $wgCanonicalNamespaceNames and $wgExtraNames...nikerabbit10:25, 20 August 2010

Status & tagging log