X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b012e152455e4238d927d75473352f9c9097b753..15a1666f8a1e19c338015fccd502be6cfd5c24df:/lib/ClassTypes.php?ds=sidebyside diff --git a/lib/ClassTypes.php b/lib/ClassTypes.php index 752db865..bb7b0486 100644 --- a/lib/ClassTypes.php +++ b/lib/ClassTypes.php @@ -252,13 +252,17 @@ function getIcon($aPlace) */ function getIconFile($aPlace) { + if (CONST_MapIcon_URL === false) { + return null; + } + $sIcon = getIcon($aPlace); if (!isset($sIcon)) { return null; } - return CONST_Website_BaseURL.'images/mapicons/'.$sIcon.'.p.20.png'; + return CONST_MapIcon_URL.'/'.$sIcon.'.p.20.png'; } /**