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.
remotes/origin/fix-10825
Lukas Reschke 2014-09-30 14:08:43 +07:00
parent 5292a14cdf
commit 96d9e0eb5b
1 changed files with 1 additions and 3 deletions

@ -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;
}