I've changed L154 of SMW_QueryPrinter.php to: -------------- # $result = '[[SMW::off]]' . $wgParser->replaceVariables($result) . '[[SMW::on]]'; //old line $result = $wgParser->replaceVariables($result); if( chr(13) == substr($result,0,1) ) //if there is an initial \r $result = substr($result,2); //skip over the initial \r\n -------------- and it seems to work fine, giving my exactly as expected, that is, after adjusting the initial query to: {{#ask: [[Business:+]] [[Industry::{{FULLPAGENAME}}||<q>[[:Category:+]][[{{#var:industries|+}}]]</q>]]} }
Could someone tell me whether this change to SMW_QueryPrinter.php is a BAD IDEA? What is the impact on SMW::parsePropertiesCallback where these tags seem (most) operative, via SMW::smwgStoreAnnotations? Thanks much, John ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel