]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/website/details.php
ICU: additional ranking by matching of normalised term
[nominatim.git] / lib-php / website / details.php
index c16725e2ca2dae23b4b6e7d68195dafd4297bb10..0d67ec83d7a18bb9cb3906f7981b8cd26f614612 100644 (file)
@@ -83,7 +83,7 @@ if ($sOsmType && $iOsmId > 0) {
     }
 
     if ($sPlaceId === false) {
-        throw new Exception('No place with that OSM ID found.', 404);
+        throw new \Exception('No place with that OSM ID found.', 404);
     }
 } else {
     if ($sPlaceId === false) {
@@ -146,7 +146,7 @@ $sSQL .= " WHERE place_id = $iPlaceID";
 $aPointDetails = $oDB->getRow($sSQL, null, 'Could not get details of place object.');
 
 if (!$aPointDetails) {
-    throw new Exception('No place with that place ID found.', 404);
+    throw new \Exception('No place with that place ID found.', 404);
 }
 
 $aPointDetails['localname'] = $aPointDetails['localname']?$aPointDetails['localname']:$aPointDetails['housenumber'];