From: arno Date: Sat, 8 Aug 2009 12:25:28 +0000 (+0200) Subject: fixes: wrong url for thumbnails if THUMBSDIRURL is defined X-Git-Tag: v0.2~2 X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=commitdiff_plain;h=259b6d11bb6d0233343744c0452358293d5be517 fixes: wrong url for thumbnails if THUMBSDIRURL is defined --- diff --git a/inc/utils.php b/inc/utils.php index a55e879..b093b0b 100644 --- a/inc/utils.php +++ b/inc/utils.php @@ -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)); }