mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 11:17:54 +00:00
Fix metadata loading
fetchImageInfo() was used to load different property sets, but had a single cache, so sometimes the results with less properties overwrote the ones with more. This is a dirty hack to deal with that. I will revisit once we use promises. Bug: 59817 Change-Id: I4f375bcc4e6fcfdb3e3fe7a30fc90a8fd44164c3
This commit is contained in:
parent
666f2b3af3
commit
a91058adc4
|
@ -821,7 +821,7 @@
|
||||||
targetWidth = widths.target,
|
targetWidth = widths.target,
|
||||||
requestedWidth = widths.requested;
|
requestedWidth = widths.requested;
|
||||||
|
|
||||||
props = props || iiprops;
|
props = $.merge( props || [], iiprops ); // FIXME bug 59817
|
||||||
apiArgs.iiprop = props.join( '|' );
|
apiArgs.iiprop = props.join( '|' );
|
||||||
apiArgs.iiurlwidth = requestedWidth;
|
apiArgs.iiurlwidth = requestedWidth;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue