/hierarchy.php was missing namespace calling AddressDetails

This commit is contained in:
marc tobias 2019-07-28 22:05:51 +02:00
parent 511204c158
commit 7b09e320a8
2 changed files with 2 additions and 2 deletions

View 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)) {

View 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.');