ResourceLoaderImage: Correctly ignore 'deprecated' key
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 29 Mar 2017 18:44:22 +0000 (14:44 -0400)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 29 Mar 2017 18:44:22 +0000 (14:44 -0400)
commitc03f57bc119d404469dfd8046acad7626464d813
tree6b08ad26f9254d5cca01c70316cf7d46e67cbee0
parent6eeefad9a3edeffa28577dfa3bb588f17ef50a5b
ResourceLoaderImage: Correctly ignore 'deprecated' key

It turns out that 'resources/lib/oojs-ui/themes/mediawiki/Moved since v0.20.1, use from the 'interactions' pack instead.'
is not usually an existing file, and doesn't have the extension '.svg'.
Not sure why this didn't break earlier.

Bonus: Add module name to exceptions to make these errors easier
to track down.

Bonus #2: Use the post-expansion, not pre-expansion, definition everywhere
to avoid confusion when debugging.

Change-Id: I0325d4dab5658fd29c3c33fd3e762834b53d1b5d
includes/resourceloader/ResourceLoaderImage.php