update links to OSM objects

/browse/ is no longer necesary in the URL
This commit is contained in:
Sarah Hoffmann
2016-06-12 09:26:58 +02:00
parent 76b9eb8098
commit 6fef943e49
5 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@
{
$sOSMType = ($aFeature['osm_type'] == 'N'?'node':($aFeature['osm_type'] == 'W'?'way':($aFeature['osm_type'] == 'R'?'relation':'')));
if ($sOSMType) {
return '<a href="http://www.openstreetmap.org/browse/'.$sOSMType.'/'.$aFeature['osm_id'].'">'.$sOSMType.' '.$aFeature['osm_id'].'</a>';
return '<a href="http://www.openstreetmap.org/'.$sOSMType.'/'.$aFeature['osm_id'].'">'.$sOSMType.' '.$aFeature['osm_id'].'</a>';
}
return '';
}
@@ -130,4 +130,4 @@
<?php include(CONST_BasePath.'/lib/template/includes/html-footer.php'); ?>
</body>
</html>
</html>