X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=items.php;h=f8774032cb89d25a7e3b287624124418498dfc10;hb=ec0e87c5345c39b2317fed18338681621460159d;hp=bcf5f1fc9757c50b33097c72bec649a0c9f738f4;hpb=57511b4efd7402ef58de66ac1fe2c01ed1b1d7b5;p=syp.git diff --git a/items.php b/items.php index bcf5f1f..f877403 100644 --- a/items.php +++ b/items.php @@ -8,6 +8,8 @@ require_once ("./inc/db/mysql.php"); function main ($features) { + header ("Cache-control: no-cache"); + echo ' @@ -21,7 +23,7 @@ function main ($features) { $title = htmlspecialchars ($feature->title, ENT_QUOTES); $description = htmlspecialchars ($feature->description, ENT_QUOTES); $imgurl = ($feature->imgpath ? - full_url_from_filename ($feature->imgpath) + full_url_from_imgpath ($feature->imgpath) : ""); $lon = $feature->lon; $lat = $feature->lat; @@ -30,7 +32,8 @@ function main ($features) { $title; if ($imgurl) { - $imgurlHTML = sprintf ('%s', $alt, $imgurl); + $imgurlHTML = sprintf ('%s', + $imgurl, $alt, $imgurl); } else { $imgurlHTML = ""; }