diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-09-23 15:33:16 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-07 13:19:21 +0200 |
commit | d410faf11c57172bdf9d618a71e4aaf9640867c0 (patch) | |
tree | 81f61d97a49746358540a7689e2f7dc7cb31f7f1 /lib/private/preview/unknown.php | |
parent | 4ac3ecace2a285b954967ebe7de8d7ef54c4b655 (diff) | |
download | nextcloud-server-d410faf11c57172bdf9d618a71e4aaf9640867c0.tar.gz nextcloud-server-d410faf11c57172bdf9d618a71e4aaf9640867c0.zip |
fix new extension
Diffstat (limited to 'lib/private/preview/unknown.php')
-rw-r--r-- | lib/private/preview/unknown.php | 4 |
1 files 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'); |