]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/output.php
return place_id link to details when not an OSM object
[nominatim.git] / lib / output.php
index 9d4b7502c855044c6859bae36f1d291897ab20c7..8715efbc49b61d5fa83aa7d37c9f4d27955634dc 100644 (file)
@@ -48,5 +48,5 @@ function detailsPermaLink($aFeature, $sRefText = false)
         $sLabel = $sRefText ? $sRefText : $sOSMType.' '.$aFeature['osm_id'];
         return '<a href="details.php?osmtype='.$aFeature['osm_type'].'&osmid='.$aFeature['osm_id'].'&class='.$aFeature['class'].'">'.$sLabel.'</a>';
     }
-    return '';
+    return detailsLink($aFeature, $sRefText);
 }