Page MenuHomePhabricator

can't regression test multiple parser funcitons.
Closed, ResolvedPublic

Description

Author: ssanbeg

Description:
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


Version: 1.9.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz8074

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:32 PM
bzimport set Reference to bz8074.
bzimport added a subscriber: Unknown Object (MLST).

ssanbeg wrote:

Problem was in API documentation; apparently, the magic language hook needs to
return true, otherwise it screws up other extensions (?).