]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/template/details-error-html.php
Merge remote-tracking branch 'upstream/master' into cmake-port
[nominatim.git] / lib / template / details-error-html.php
index f93cca4d6917240147c98598a8567ce9c29e2abe..bc00f84d6e97d88639722850bfd68ce5e561fa17 100644 (file)
@@ -11,9 +11,6 @@
 
        function osmMapUrl($aFeature)
        {
-               $sLon = $aFeature['error_x'];
-               $sLat = $aFeature['error_y'];
-
                if (isset($sFeature['error_x']) && isset($sFeature['error_y']))
                {
                        $sBaseUrl = '//www.openstreetmap.org/';
@@ -23,8 +20,7 @@
                                $sBaseUrl += $sOSMType.'/'.$aFeature['osm_id'];
                        }
 
-                               return '<a href="'.$sBaseUrl.'?mlat='.$sLat.'&mlon='.$sLon.'">view on osm.org</a>';
-                       }
+                       return '<a href="'.$sBaseUrl.'?mlat='.$aFeature['error_y'].'&mlon='.$aFeature['error_x'].'">view on osm.org</a>';
                }
                return '';
        }