mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix: Fix mimeType detection/discovery.
This commit is contained in:
parent
15e42d066b
commit
994dafa3fc
@ -58,7 +58,7 @@ final class ChillWopi implements WopiInterface
|
|||||||
|
|
||||||
$mimeType = $storedObject->getType();
|
$mimeType = $storedObject->getType();
|
||||||
|
|
||||||
if (false !== current($this->wopiDiscovery->discoverMimeType($mimeType))) {
|
if (false === reset($this->wopiDiscovery->discoverMimeType($mimeType))) {
|
||||||
throw new Exception(sprintf('Unable to find mime type %s', $mimeType));
|
throw new Exception(sprintf('Unable to find mime type %s', $mimeType));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user