Expose RL modules and js config vars in action=expandtemplates
authorMarc Ordinas i Llopis <marcoil@wikimedia.org>
Thu, 4 Jun 2015 10:32:23 +0000 (03:32 -0700)
committerMarc Ordinas i Llopis <marcoil@wikimedia.org>
Fri, 5 Jun 2015 16:04:47 +0000 (09:04 -0700)
commit8929182a67ef9144f4cb9afedffe27aafca94469
treea425e82a51e717b7b18a22fc80aa781576ac8272
parent7b835dd12649b7c474d4c9f42875a8a2b23eb032
Expose RL modules and js config vars in action=expandtemplates

Adds the 'modules', 'jsconfigvars', and 'encodedjsconfigvars' props
to action=expandtemplates, that output the modules and Javascript
configuration variables added to ResourceLoader by extensions and
parser functions, in the same way action=parse does.

This is needed by Parsoid to correctly include all modules used by
parser functions.

Based on I5c3ccb25385e57633639bb0c7e6f562eb58b05a2 by @Jackmcbarn.

Bug: T69540
Change-Id: Iaf58c66c987a318c0dd1ee2b81774106c40e7561
includes/api/ApiExpandTemplates.php
includes/api/ApiParse.php
includes/api/ApiResult.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json
tests/phpunit/includes/api/ApiResultTest.php