Remove uneeded slicing of element

The "*/*" provider has been removed. This is therefore not needed anymore and leads to unexpected bugs.

Please notice that this is only relevant for master.
This commit is contained in:
Lukas Reschke 2014-09-30 14:08:43 +02:00
parent 5292a14cdf
commit 96d9e0eb5b

View file

@ -812,9 +812,7 @@ class Preview {
self::initProviders();
}
//remove last element because it has the mimetype *
$providers = array_slice(self::$providers, 0, -1);
foreach ($providers as $supportedMimeType => $provider) {
foreach (self::$providers as $supportedMimeType => $provider) {
if (preg_match($supportedMimeType, $mimeType)) {
return true;
}