X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/eb0b3bfa4cd74ee9e425c54868a30d8859e694cd..82a11cae2ddb7cfe3b2a180346bb374efe2e6a9d:/lib/output.php diff --git a/lib/output.php b/lib/output.php index 983e3440..823a6631 100644 --- a/lib/output.php +++ b/lib/output.php @@ -1,5 +1,6 @@ '.($sTitle?$sTitle:$aFeature['place_id']).''; + $sHtml = ''.($sTitle?$sTitle:$aFeature['place_id']).''; + + return $sHtml; } +function detailsPermaLink($aFeature, $sRefText = false, $sExtraProperties = false) +{ + $sOSMType = formatOSMType($aFeature['osm_type'], false); + + if ($sOSMType) { + $sHtml = ''; + + if ($sRefText) { + $sHtml .= $sRefText.''; + } else { + $sHtml .= $sOSMType.' '.$aFeature['osm_id'].''; + } + + return $sHtml; + } + return detailsLink($aFeature, $sRefText, $sExtraProperties); +}