X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/101f04bbf2ca012a174beec21f1cfeb45b0272c0..ab9202b1c2de078822756d447e450610f0815692:/lib/template/details-html.php?ds=sidebyside diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 43ec1266..c15e74c8 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -57,10 +57,12 @@ return $sHTML; } - function map_icon($sIcon) + function map_icon($aPlace) { - if ($sIcon){ - echo ''; + $sIcon = Nominatim\ClassTypes\getIconFile($aPlace); + if (isset($sIcon)) { + $sLabel = Nominatim\ClassTypes\getIcon($aPlace); + echo ''; } } @@ -112,7 +114,7 @@