Last modified: 2006-11-30 17:10:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10074, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8074 - can't regression test multiple parser funcitons.
can't regression test multiple parser funcitons.
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.9.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-28 21:52 UTC by Steve Sanbeg
Modified: 2006-11-30 17:10 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Steve Sanbeg 2006-11-28 21:52:21 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
Comment 1 Steve Sanbeg 2006-11-30 17:10:37 UTC
Problem was in API documentation; apparently, the magic language hook needs to
return true, otherwise it screws up other extensions (?).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links