From: Jonas Hantelmann Date: Mon, 12 Feb 2018 10:21:05 +0000 (+0100) Subject: PlaceLookup::getAddressDetails() should be public, restore default values X-Git-Tag: v3.2.0~128^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/a489ac07cd74c970cd2d964290e3f8bec53ceccc PlaceLookup::getAddressDetails() should be public, restore default values PlaceLookup::getAddressDetails() is also used within the hierarchy.php file so it must not be private. --- diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index 4fce7e36..41fdea89 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -462,7 +462,7 @@ class PlaceLookup return $aPlaces; } - private function getAddressDetails($iPlaceID, $bAll, $sHousenumber) + public function getAddressDetails($iPlaceID, $bAll = false, $sHousenumber = -1) { $sSQL = 'SELECT *,'; $sSQL .= ' get_name_by_language(name,'.$this->aLangPrefOrderSql.') as localname';