fix new extension

This commit is contained in:
Georg Ehrke 2013-09-23 15:33:16 +02:00 committed by Morris Jobke
parent 4ac3ecace2
commit d410faf11c
1 changed files with 2 additions and 2 deletions

View File

@ -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');