X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=items.php;h=c36318379964d0790564a47587ccf7b4416ef27a;hp=af0192f5ef61bdedd76a9c75876a4fbcd6cb5c61;hb=9acc365249b5e630da6b5cdd23e3a8015f39ddc7;hpb=e4a4e5149d55cf01a86f26392c52fdca803654ce diff --git a/items.php b/items.php index af0192f..c363183 100644 --- a/items.php +++ b/items.php @@ -8,7 +8,7 @@ require_once ("./inc/db/mysql.php"); function main ($features) { - header("Cache-control: no-cache"); + header ("Cache-control: no-cache"); echo ' @@ -23,7 +23,10 @@ function main ($features) { $title = htmlspecialchars ($feature->title, ENT_QUOTES); $description = htmlspecialchars ($feature->description, ENT_QUOTES); $imgurl = ($feature->imgpath ? - full_url_from_imgpath ($feature->imgpath) + image_url_from_imgpath ($feature->imgpath) + : ""); + $thumburl = ($feature->imgpath ? + thumb_url_from_imgpath ($feature->imgpath) : ""); $lon = $feature->lon; $lat = $feature->lat; @@ -32,7 +35,7 @@ function main ($features) { $title; if ($imgurl) { - $imgurlHTML = sprintf ('%s', $alt, $imgurl); + $imgurlHTML = sprintf ('%s', $imgurl, $alt, $thumburl); } else { $imgurlHTML = ""; }