mediawiki-extensions-Scribunto/engines/LuaCommon
Brad Jorsch adb7b5f939 Make pairs() work with various library objects
Users are reporting disappointment that using pairs on title objects
doesn't let them see the fields available. It's easy enough to add a
__pairs metamethod to allow pairs to work on title objects, so let's do
that.

The same can be done for mw.uri objects.

For mw.message objects, we can easily enough change the implementation
to be like mw.language objects, which doesn't have this problem.

For mw.site.stats, we may as well just remove the load-on-demand feature
since it will be demanded as soon as the environment is cloned for the
first module.

Change-Id: Ie5a3b5684b2bb6c090f9994baa03977687688929
2013-04-02 17:23:42 +00:00
..
lualib Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
LanguageLibrary.php Missing global 2013-03-11 14:55:23 -04:00
LibraryBase.php Clean up title handling for defaultUrl 2013-02-07 15:45:49 -05:00
LuaCommon.php (bug 46635) Recognize Windows path+drive letter 2013-03-29 09:26:13 -04:00
LuaInterpreter.php (bug 45684) Don't count argument parsing time towards Lua limit 2013-03-12 03:18:05 +00:00
MessageLibrary.php Add mw.message library 2013-02-26 22:20:04 -08:00
SiteLibrary.php Make pairs() work with various library objects 2013-04-02 17:23:42 +00:00
TextLibrary.php Add text module 2013-03-20 10:10:15 -04:00
TitleLibrary.php (bug 46405) Fix errors in mw.title.new( pageid ) 2013-03-21 09:39:25 -04:00
UriLibrary.php Clean up argument lists 2013-03-04 14:55:46 -05:00
UstringLibrary.php Fix ustring errors 2013-03-05 12:22:15 -05:00