X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/850ab6999cb12520e1f00b39bf7803d6c47b3705..0a26ca7104940447ea98a1edf0e7c443da09d37f:/website/details.php diff --git a/website/details.php b/website/details.php index cb371e6b..44d4956b 100644 --- a/website/details.php +++ b/website/details.php @@ -30,6 +30,11 @@ $oDB->connect(); $sLanguagePrefArraySQL = $oDB->getArraySQL($oDB->getDBQuotedList($aLangPrefOrder)); +if ($sOutputFormat == 'html' && !$sPlaceId && !$sOsmType) { + include(CONST_BasePath.'/lib/template/details-index-html.php'); + exit; +} + if ($sOsmType && $iOsmId > 0) { $sSQL = 'SELECT place_id FROM placex WHERE osm_type = :type AND osm_id = :id'; // osm_type and osm_id are not unique enough