diff options
Diffstat (limited to 'lib/private/preview.php')
-rwxr-xr-x | lib/private/preview.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index c93f5d5516f..60653a3b118 100755 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -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; } |