X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/40588482a245902c844631a50befeffa95c03dcb..d020e05f5bf4044d34332e3323ed7459adb1de48:/website/details.php diff --git a/website/details.php b/website/details.php index ad753a82..3a0fee82 100755 --- a/website/details.php +++ b/website/details.php @@ -159,7 +159,12 @@ logEnd($oDB, $hLog, 1); - $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/details-'.$sOutputFormat.'.php');