]> git.openstreetmap.org Git - nominatim.git/commitdiff
PlaceLookup::getAddressDetails() should be public, restore default values
authorJonas Hantelmann <jonas.hantelmann@openpetition.de>
Mon, 12 Feb 2018 10:21:05 +0000 (11:21 +0100)
committerJonas Hantelmann <jonas.hantelmann@openpetition.de>
Mon, 12 Feb 2018 10:21:05 +0000 (11:21 +0100)
PlaceLookup::getAddressDetails() is also used within the hierarchy.php
file so it must not be private.

lib/PlaceLookup.php

index 4fce7e3683a74a32d1b6a95faca75e731d831446..41fdea89ebdc9b99fdae011ff0788f650eadd661 100644 (file)
@@ -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';