mediawiki-extensions-Visual.../modules/ve-mw/dm
Mark A. Hershberger 7d5e5ec9a9 MWMediaResourceProvider: Use exist instead of bool check on API values
In the MediaWiki API, booleans exist or don't exist (with an empty string),
you can't check "if (bool)..." since that will always be false.  The API has
a newer formatversion=2 that fixes this but we're not using that yet.

Also update the defaultSource placeholder to match the API response. If one
would only update defaultSource without the 'if'-fix, one can reproduce T66822
on a local wiki (JSON-P request instead of JSON).

Bug: T66822
Change-Id: I5a8ab1136325c33c62982c0869fa14ca2fb26034
2015-06-11 17:29:36 +01:00
..
annotations Convert 'external' links to internal pages pasted into the search field 2015-04-29 16:11:32 +01:00
metaitems
models MWMediaResourceProvider: Use exist instead of bool check on API values 2015-06-11 17:29:36 +01:00
nodes Unregister core image types 2015-06-02 14:36:14 +01:00