summaryrefslogtreecommitdiffstats
path: root/lib/private/preview.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-30 14:08:43 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-30 14:08:43 +0200
commit96d9e0eb5b52ce13015c1c1843dbad8b2c218236 (patch)
treede4f259c3e406c0a61bad9e21d50652e140850ac /lib/private/preview.php
parent5292a14cdfa9efe6d9220b341f3261fe72c39b17 (diff)
downloadnextcloud-server-96d9e0eb5b52ce13015c1c1843dbad8b2c218236.tar.gz
nextcloud-server-96d9e0eb5b52ce13015c1c1843dbad8b2c218236.zip
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.
Diffstat (limited to 'lib/private/preview.php')
-rwxr-xr-xlib/private/preview.php4
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;
}