]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix new extension
authorGeorg Ehrke <developer@georgehrke.com>
Mon, 23 Sep 2013 13:33:16 +0000 (15:33 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Mon, 7 Oct 2013 11:19:21 +0000 (13:19 +0200)
lib/private/preview/unknown.php

index 9c1d41bef5a11642b4b8b263e2a0de766455bf97..fa2d4980a8f96741479ff918de75588a93c2a556 100644 (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');
\ No newline at end of file
+\OC\Preview::registerProvider('OC\Preview\Unknown');