]> git.openstreetmap.org Git - nominatim.git/commitdiff
/hierarchy.php was missing namespace calling AddressDetails
authormarc tobias <mtmail@gmx.net>
Sun, 28 Jul 2019 20:05:51 +0000 (22:05 +0200)
committermarc tobias <mtmail@gmx.net>
Sun, 28 Jul 2019 20:05:51 +0000 (22:05 +0200)
lib/AddressDetails.php
website/hierarchy.php

index b62335d1f61ace06277a7aebf23423dbba7ef3cc..783a0fdae673b8b155b5a823cd913d201196cd08 100644 (file)
@@ -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)) {
index 87e8a0afbb258fdaefd03d2169baac6d5522fcbc..e2db3edea3b54d754d80fb08266f3a5e6b05fb7b 100644 (file)
@@ -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.');