API: set 'legacyscripts' to whether a gadget includes non-ResourceLoader JS

Change-Id: I0b7e01b5164b564e1406c0dd05be67b0610dbe96
This commit is contained in:
Ricordisamoa 2015-06-13 04:33:35 +02:00
parent face23d90e
commit d072ac25a0

View file

@ -150,6 +150,7 @@ class ApiQueryGadgets extends ApiQueryBase {
'hidden' => false, // Only exists in RL2 branch
'shared' => false, // Only exists in RL2 branch
'category' => $g->getCategory(),
'legacyscripts' => (bool)$g->getLegacyScripts(),
),
'module' => array(
'scripts' => $g->getScripts(),