Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryParser.php |
— | — | @@ -432,7 +432,8 @@ |
433 | 433 | } |
434 | 434 | if ( ( count( $list ) == 2 ) && ( $list[1] == '+' ) ) { // try namespace restriction |
435 | 435 | global $wgContLang; |
436 | | - $idx = $wgContLang->getNsIndex( $list[0] ); |
| 436 | + |
| 437 | + $idx = $wgContLang->getNsIndex( str_replace( ' ', '_', $list[0] ) ); |
437 | 438 | |
438 | 439 | if ( $idx !== false ) { |
439 | 440 | $result = $this->addDescription( $result, new SMWNamespaceDescription( $idx ), false ); |