mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
API: set 'legacyscripts' to whether a gadget includes non-ResourceLoader JS
Change-Id: I0b7e01b5164b564e1406c0dd05be67b0610dbe96
This commit is contained in:
parent
face23d90e
commit
d072ac25a0
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue