From d410faf11c57172bdf9d618a71e4aaf9640867c0 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 23 Sep 2013 15:33:16 +0200 Subject: [PATCH] fix new extension --- lib/private/preview/unknown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/preview/unknown.php b/lib/private/preview/unknown.php index 9c1d41bef5a..fa2d4980a8f 100644 --- a/lib/private/preview/unknown.php +++ b/lib/private/preview/unknown.php @@ -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'); \ No newline at end of file +\OC\Preview::registerProvider('OC\Preview\Unknown'); -- 2.39.5