Last modified: 2006-11-30 17:10:37 UTC
It appears that when regression testing parser functions, the LanguageGetMagic hook is only called for the first extension that loads it. Subsequent extensions don't load the magic word, and ths won't recognize parser functions, so the tested extension has to be the first one with parserfunctions listed in LocalSettings.php. I haven't found a fix for this, unfortuantely. for example, this would be printed if labeled section transclusion is the second one listed (it doesn't matter whether it is being tested or not) --- Notice: Undefined index: lst in /var/www/html/wikis/svn/languages/Language.php on line 1096 "" is not a valid magic thingie for "lst" Warning: array_slice(): The first argument should be an array in /var/www/html/wikis/svn/languages/Language.php on line 1104 Notice: Undefined index: lstx in /var/www/html/wikis/svn/languages/Language.php on line 1096 "" is not a valid magic thingie for "lstx" Warning: array_slice(): The first argument should be an array in /var/www/html/wikis/svn/languages/Language.php on line 1104
Problem was in API documentation; apparently, the magic language hook needs to return true, otherwise it screws up other extensions (?).