]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/details.php
aux properties, memory leaks, tweaks to search order
[nominatim.git] / website / details.php
index 97c24a28bc5277098651fee88fcde9ec0f854571..ea0d41b33a33b4615980cc6f2908836e4640d658 100755 (executable)
@@ -30,6 +30,8 @@
 
        $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_tiger where place_id = '.$iPlaceID);
        if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
+       $iParentPlaceID = $oDB->getOne('select parent_place_id from location_property_aux where place_id = '.$iPlaceID);
+       if ($iParentPlaceID) $iPlaceID = $iParentPlaceID;
 
        $aLangPrefOrder = getPrefferedLangauges();
        $sLanguagePrefArraySQL = "ARRAY[".join(',',array_map("getDBQuoted",$aLangPrefOrder))."]";