Last modified: 2011-07-17 14:56:13 UTC
MW: 1.17.0 SMW: 1.5.6 Example: http://sandbox.semantic-mediawiki.org/wiki/Namespace_Error If you perform a query of the type {{#ask:[[Namespace:+]]|...}}, the query will fail if the namespace name contains spaces. If the name is provided explicitly, the query will simply fail nastily. If the name is provided by some other means (for instance, the Variable Extension), it will cause a fatal error. SMW_QueryParser.php (on line 434, as of 1.5.6) contains the following code: $idx = $wgContLang->getNsIndex($list[0]); It should be something more like: $idx = $wgContLang->getNsIndex(str_replace(" ","_",$list[0])); Thanks!
Thanks for the patch! I just comitted it in r92394 :)