Hi all, in order to make it simpler in the future to add new formats, the static array $formats in the SMWQueryProcessor class was moved to the SMW_GlobalFunctions.php file and renamed $smwgResultFormats with the latest update on Semantic MediaWiki.
This breaks compatibility with some extensions if they were adding formats. This explicitly includes Semantic Layers, Semantic Google Maps, and Halo, and possibly others. All that needs to be done to retain compatibility is to replace the following string SMWQueryProcessor::$formats with $smwgResultFormats and make sure that $smwgResultFormats was declared global before that. You don't have to include any further files anymore like SMW_QueryProcessor or SMW_QueryPrinter. Rationale (or: Why was this done?) Previously, when you wanted to add a new format, you needed SMWQueryProcessor's static formats array, but SMWQueryProcessor is an autoloaded class: whenever you added a new format, a number of files were loaded and parsed. New formats are added in the local setting, resulting in having to load, parse and execute all the query processor PHP files even when they were not required. By moving this array to the global functions, which are loaded anyway, the number of files that are loaded at each call is decreased, thus keeping up a good speed even when adding new formats. Sorry for any inconvenience caused. Best, denny ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel