From 7b09e320a81f6379b0ba2d095887eeee0ea96836 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Sun, 28 Jul 2019 22:05:51 +0200 Subject: [PATCH 1/1] /hierarchy.php was missing namespace calling AddressDetails --- lib/AddressDetails.php | 2 +- website/hierarchy.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.'); -- 2.39.5