fix new extension
This commit is contained in:
parent
4ac3ecace2
commit
d410faf11c
|
@ -21,7 +21,7 @@ class Unknown extends Provider {
|
|||
$path = \OC::$SERVERROOT . substr($path, strlen(\OC::$WEBROOT));
|
||||
|
||||
if (extension_loaded('imagick')) {
|
||||
$path = substr_replace($path, 'png', -3);
|
||||
$path = substr_replace($path, 'svg', -3);
|
||||
$content = file_get_contents($path);
|
||||
|
||||
$svg = new \Imagick();
|
||||
|
@ -39,4 +39,4 @@ class Unknown extends Provider {
|
|||
}
|
||||
}
|
||||
|
||||
\OC\Preview::registerProvider('OC\Preview\Unknown');
|
||||
\OC\Preview::registerProvider('OC\Preview\Unknown');
|
||||
|
|
Loading…
Reference in New Issue