mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-25 00:25:47 +00:00
Merge "Ignore case in file extension checks"
This commit is contained in:
commit
00ebd0542f
|
@ -175,7 +175,7 @@
|
|||
* @return {boolean}
|
||||
*/
|
||||
GuessedThumbnailInfo.prototype.canHaveLargerThumbnailThanOriginal = function ( file ) {
|
||||
return ( file.getExtension() in this.vectorExtensions );
|
||||
return ( file.getExtension().toLowerCase() in this.vectorExtensions );
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -185,7 +185,7 @@
|
|||
* @return {boolean}
|
||||
*/
|
||||
GuessedThumbnailInfo.prototype.canBeDisplayedInBrowser = function ( file ) {
|
||||
return ( file.getExtension() in this.displayableExtensions );
|
||||
return ( file.getExtension().toLowerCase() in this.displayableExtensions );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue