mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #11367 from owncloud/removeIsMimeSupported
Remove uneeded slicing of element
This commit is contained in:
commit
bf674487aa
1 changed files with 1 additions and 3 deletions
|
|
@ -814,9 +814,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue