X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/40588482a245902c844631a50befeffa95c03dcb..d020e05f5bf4044d34332e3323ed7459adb1de48:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index e2dfaef8..f760dc09 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -76,6 +76,10 @@ exit; } - $sTileURL = CONST_Map_Tile_URL; - $sTileAttribution = CONST_Map_Tile_Attribution; + if ($sOutputFormat=='html') + { + $sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '2 minutes'::interval,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1"); + $sTileURL = CONST_Map_Tile_URL; + $sTileAttribution = CONST_Map_Tile_Attribution; + } include(CONST_BasePath.'/lib/template/address-'.$sOutputFormat.'.php');