summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-09-10 16:22:41 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-09-10 16:22:41 +0200
commit77ac1e6a8b304a0af2d46c890c270a322dfdf34d (patch)
treee65281411448c71a9ba82aa50cf102ad88f60d5b
parent0e9a9d99a1cc7234f9bfb7ad3697fc58cef8cb2e (diff)
do not pass HAFAS flag to geostop; it's not used there anyways
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm5
-rw-r--r--templates/layouts/app.html.ep2
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 3cdf5b8..8cfdbfe 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -1785,9 +1785,8 @@ sub handle_result {
sub stations_by_coordinates {
my $self = shift;
- my $lon = $self->param('lon');
- my $lat = $self->param('lat');
- my $hafas = $self->param('hafas');
+ my $lon = $self->param('lon');
+ my $lat = $self->param('lat');
if ( not $lon or not $lat ) {
$self->render( json => { error => 'Invalid lon/lat received' } );
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index 9b5e0b6..bc12c5e 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -146,7 +146,7 @@ Bitte eine Station aus der Liste auswählen</div>
</div>
% if (stash('input')) {
<div class="geolink">
- <a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https')->query({hafas => param('hafas')}) %>">Stationen in der Umgebung suchen</a>
+ <a class="button" href="<%= url_for('_autostop')->to_abs->scheme('https') %>">Stationen in der Umgebung suchen</a>
</div>
% }
<div class="break"></div>