From: Sarah Hoffmann Date: Sun, 12 Jun 2016 07:26:58 +0000 (+0200) Subject: update links to OSM objects X-Git-Tag: v3.0.0~159^2~6 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/6fef943e49ddd719524d1987e134d97fa89f2157 update links to OSM objects /browse/ is no longer necesary in the URL --- diff --git a/lib/template/details-error-html.php b/lib/template/details-error-html.php index 1c6d2a0a..545dc52b 100644 --- a/lib/template/details-error-html.php +++ b/lib/template/details-error-html.php @@ -13,7 +13,7 @@ { $sOSMType = ($aFeature['osm_type'] == 'N'?'node':($aFeature['osm_type'] == 'W'?'way':($aFeature['osm_type'] == 'R'?'relation':''))); if ($sOSMType) { - return ''.$sOSMType.' '.$aFeature['osm_id'].''; + return ''.$sOSMType.' '.$aFeature['osm_id'].''; } return ''; } @@ -130,4 +130,4 @@ - \ No newline at end of file + diff --git a/lib/template/details-html.php b/lib/template/details-html.php index ae36b411..7d9696b8 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -25,7 +25,7 @@ $sOSMType = ($aFeature['osm_type'] == 'N'?'node':($aFeature['osm_type'] == 'W'?'way':($aFeature['osm_type'] == 'R'?'relation':''))); if ($sOSMType) { - return ''.$sOSMType.' '.$aFeature['osm_id'].''; + return ''.$sOSMType.' '.$aFeature['osm_id'].''; } return ''; } diff --git a/website/deletable.php b/website/deletable.php index 3283bb83..efd20ab3 100755 --- a/website/deletable.php +++ b/website/deletable.php @@ -82,7 +82,7 @@ table td { { case 'osm_id': $sOSMType = ($aRow['osm_type'] == 'N'?'node':($aRow['osm_type'] == 'W'?'way':($aRow['osm_type'] == 'R'?'relation':''))); - echo ''.$sVal.''; + echo ''.$sVal.''; break; case 'place_id': echo ''.$sVal.''; diff --git a/website/hierarchy.php b/website/hierarchy.php index e0e960bc..8c0ae1f5 100755 --- a/website/hierarchy.php +++ b/website/hierarchy.php @@ -69,7 +69,7 @@ $aBreadcrums[] = array('placeId'=>$aPlace['place_id'], 'osmType'=>$aPlace['osm_type'], 'osmId'=>$aPlace['osm_id'], 'localName'=>$aPlace['localname']); $sPlaceUrl = 'hierarchy.php?place_id='.$aPlace['place_id']; $sOSMType = ($aPlace['osm_type'] == 'N'?'node':($aPlace['osm_type'] == 'W'?'way':($aPlace['osm_type'] == 'R'?'relation':''))); - $sOSMUrl = 'http://www.openstreetmap.org/browse/'.$sOSMType.'/'.$aPlace['osm_id']; + $sOSMUrl = 'http://www.openstreetmap.org/'.$sOSMType.'/'.$aPlace['osm_id']; if ($sOutputFormat == 'html') if ($i) echo " > "; if ($sOutputFormat == 'html') echo ''.$aPlace['localname'].' (osm)'; } @@ -127,7 +127,7 @@ echo ''.(trim($aAddressLine['localname'])?$aAddressLine['localname']:'No Name').''; echo ' ('; echo ''.($aAddressLine['isarea']=='t'?'Polygon':'Point').''; - if ($sOSMType) echo ', '.$sOSMType.' '.$aAddressLine['osm_id'].''; + if ($sOSMType) echo ', '.$sOSMType.' '.$aAddressLine['osm_id'].''; echo ', GOTO'; echo ', '.$aAddressLine['area']; echo ')'; diff --git a/website/polygons.php b/website/polygons.php index 92dbf70d..b6146d95 100755 --- a/website/polygons.php +++ b/website/polygons.php @@ -111,7 +111,7 @@ table td { break; case 'id': $sOSMType = ($aRow['type'] == 'N'?'node':($aRow['type'] == 'W'?'way':($aRow['type'] == 'R'?'relation':''))); - echo ''.$aRow['id'].''; + echo ''.$aRow['id'].''; break; default: echo "".($sVal?$sVal:' ')."";