mediawiki-extensions-Scribunto/engines/LuaCommon
Brad Jorsch 35ee461a0b Improve frame:callParserFunction argument validation
From wikitext, $parser->callParserFunction() will always get an array of
strings with at least an element [0]. Let's match this from Scribunto:
stringify numbers, and require that [0] (although in Lua it'll be [1]).

Also fix an old broken unit test.

Bug: 63597
Change-Id: Ie7ac34ae4bce70cec455d90c3f02a658644f6866
2014-05-13 05:14:07 +00:00
..
lualib Improve frame:callParserFunction argument validation 2014-05-13 05:14:07 +00:00
HtmlLibrary.php Add mw.html to Scribunto 2014-01-03 00:04:34 +01:00
LanguageLibrary.php Remove limits on mw.language:formatDate() 2014-03-21 19:04:17 -04:00
LibraryBase.php Clean up title handling for defaultUrl 2013-02-07 15:45:49 -05:00
LuaCommon.php Improve frame:callParserFunction argument validation 2014-05-13 05:14:07 +00:00
LuaInterpreter.php (bug 45684) Don't count argument parsing time towards Lua limit 2013-03-12 03:18:05 +00:00
MessageLibrary.php Remove leftover code for titles in messages 2014-03-18 13:52:51 -04:00
SiteLibrary.php Properly handle spaces/underscores in mw.site.namespaces 2013-10-31 11:09:16 -04:00
TextLibrary.php Improve mw.text.nowiki 2013-09-03 17:36:36 -04:00
TitleLibrary.php Add protectionLevels variable to mw.title output 2014-01-15 14:53:18 -05:00
UriLibrary.php Clean up argument lists 2013-03-04 14:55:46 -05:00
UstringLibrary.php Fix PHP implementation of mw.ustring %W 2014-02-10 00:45:46 +00:00