]> dev.renevier.net Git - syp.git/commitdiff
fixes: wrong url for thumbnails if THUMBSDIRURL is defined
authorarno <arenevier@fdn.fr>
Sat, 8 Aug 2009 12:25:28 +0000 (14:25 +0200)
committerarno <arenevier@fdn.fr>
Sat, 8 Aug 2009 12:25:28 +0000 (14:25 +0200)
inc/utils.php

index a55e8794296c3ce6c90c4cc22e649b3a8077fb60..b093b0bae870837ed9d7f64262e27870218d8842 100644 (file)
@@ -45,7 +45,7 @@ function unquote($gpc_str) {
 
 function thumb_url_from_imgpath ($filename) {
     if (defined ("THUMBSDIRURL") && (strlen (THUMBSDIRURL) != 0)) {
-        return rtrim (THUMBSDIRURL, '/') . "/_mini" . rawurlencode ($filename);
+        return rtrim (THUMBSDIRURL, '/') . "/mini_" . rawurlencode ($filename);
     }
     return full_url_from_path (getthumbsdir () . "/mini_" . rawurlencode ($filename));
 }