X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1db8f7e353914f02a4274a129bfa56d45fdb75b4..77e287f66918296b9461470a7846e22ec1f36a08:/lib/ClassTypes.php diff --git a/lib/ClassTypes.php b/lib/ClassTypes.php index c8d37e52..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'; } /** @@ -275,6 +279,7 @@ function getImportance($aPlace) if ($aWithImportance === null) { $aWithImportance = array_flip(array( + 'boundary:administrative', 'place:country', 'place:state', 'place:province',