From: marc tobias Date: Sun, 28 Jul 2019 20:05:51 +0000 (+0200) Subject: /hierarchy.php was missing namespace calling AddressDetails X-Git-Tag: v3.4.0~18^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/7b09e320a81f6379b0ba2d095887eeee0ea96836 /hierarchy.php was missing namespace calling AddressDetails --- diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index b62335d1..783a0fda 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -14,7 +14,7 @@ class AddressDetails public function __construct(&$oDB, $iPlaceID, $sHousenumber, $mLangPref) { if (is_array($mLangPref)) { - $mLangPref = 'ARRAY['.join(',', array_map('getDBQuoted', $mLangPref)).']'; + $mLangPref = $oDB->getArraySQL($oDB->getDBQuotedList($mLangPref)); } if (!isset($sHousenumber)) { diff --git a/website/hierarchy.php b/website/hierarchy.php index 87e8a0af..e2db3ede 100644 --- a/website/hierarchy.php +++ b/website/hierarchy.php @@ -58,7 +58,7 @@ if (CONST_Use_Aux_Location_data) { } -$oAddressLookup = new AddressDetails($oDB, $iPlaceID, -1, $aLangPrefOrder); +$oAddressLookup = new Nominatim\AddressDetails($oDB, $iPlaceID, -1, $aLangPrefOrder); $aPlaceAddress = array_reverse($oAddressLookup->getAddressDetails()); if (empty($aPlaceAddress)) userError('Unknown place id.');