From 6a671d45390c883d994defdaa544405223b8dc29 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 29 Aug 2023 20:54:11 +0200 Subject: geostop: always show hafas and iris stops --- lib/DBInfoscreen/Controller/Static.pm | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib/DBInfoscreen/Controller/Static.pm') diff --git a/lib/DBInfoscreen/Controller/Static.pm b/lib/DBInfoscreen/Controller/Static.pm index 4560d02..22f2034 100644 --- a/lib/DBInfoscreen/Controller/Static.pm +++ b/lib/DBInfoscreen/Controller/Static.pm @@ -42,23 +42,8 @@ sub redirect { sub geostop { my ($self) = @_; - my ( $api_link, $api_text, $api_icon ); - if ( $self->param('hafas') ) { - $api_link = '/_autostop'; - $api_text = 'Auf Bahnverkehr wechseln'; - $api_icon = 'directions_bus'; - } - else { - $api_link = '/_autostop?hafas=1'; - $api_text = 'Auf Nahverkehr wechseln'; - $api_icon = 'train'; - } - $self->render( 'geostop', - api_link => $api_link, - api_text => $api_text, - api_icon => $api_icon, with_geostop => 1, hide_opts => 1 ); -- cgit v1.2.3