r92394 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92393‎ | r92394 | r92395 >
Date:14:55, 17 July 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
applied patch suggested by Nathan Douglas for bug 29931
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryParser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryParser.php
@@ -432,7 +432,8 @@
433433 }
434434 if ( ( count( $list ) == 2 ) && ( $list[1] == '+' ) ) { // try namespace restriction
435435 global $wgContLang;
436 - $idx = $wgContLang->getNsIndex( $list[0] );
 436+
 437+ $idx = $wgContLang->getNsIndex( str_replace( ' ', '_', $list[0] ) );
437438
438439 if ( $idx !== false ) {
439440 $result = $this->addDescription( $result, new SMWNamespaceDescription( $idx ), false );