Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -231,7 +231,6 @@ |
232 | 232 | global $smwgIP, $wgHooks, $wgParser, $wgExtensionCredits, $smwgEnableTemplateSupport, $smwgMasterStore, $smwgIQRunningNumber, $wgLanguageCode, $wgVersion, $smwgToolboxBrowseLink; |
233 | 233 | |
234 | 234 | $smwgMasterStore = NULL; |
235 | | - smwfInitContentLanguage($wgLanguageCode); // this really could not be done in enableSemantics() |
236 | 235 | wfLoadExtensionMessages('SemanticMediaWiki'); /// TODO: this is extremely slow; up to 10% of page display time (on a page with queries!) are consumed by loading unnecessary messages from a large file ... |
237 | 236 | /// Past SMW releases had an average of about 1% extension loading time per call, while we are now up at 10%! |
238 | 237 | /// (if no PHP caching is enabled, things become better with ACP but impact still is noticeable) |
— | — | @@ -280,7 +279,7 @@ |
281 | 280 | /** |
282 | 281 | * Register special classes for displaying semantic content on Property/Type pages |
283 | 282 | */ |
284 | | -function smwfShowListPage (&$title, &$article){ |
| 283 | +function smwfShowListPage(&$title, &$article){ |
285 | 284 | global $smwgIP; |
286 | 285 | if ($title->getNamespace() == SMW_NS_TYPE){ |
287 | 286 | $article = new SMWTypePage($title); |
— | — | @@ -350,10 +349,12 @@ |
351 | 350 | } |
352 | 351 | |
353 | 352 | /** |
354 | | - * Hook function for three tasks: |
| 353 | + * Hook function for two tasks: |
| 354 | + * |
355 | 355 | * (1) insert HTML headers (CSS, JavaScript, and meta tags) into parser |
356 | 356 | * output. This is our preferred method of working off the required scripts, since it |
357 | 357 | * exploits parser caching. |
| 358 | + * |
358 | 359 | * (2) Fetch category information and other final settings from parser output. |
359 | 360 | */ |
360 | 361 | function smwfParserAfterTidy(&$parser, &$text) { |