mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue