diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-15 17:50:56 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-15 17:50:56 +0200 |
commit | 9b256f0f0245e597f21823b7078ee1f17fa9911c (patch) | |
tree | 8ca48c6769aae1a9c12adf7d28b9f2d3e1f1bffb /lib/Travelynx/Controller/Account.pm | |
parent | b00c3698b2a9a8702a02c6c978560aad6cff8698 (diff) |
remove service / sb_template selection; hardcode DBF with variable hafas flag
Diffstat (limited to 'lib/Travelynx/Controller/Account.pm')
-rw-r--r-- | lib/Travelynx/Controller/Account.pm | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index f1dc43e..5c101b1 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -831,29 +831,6 @@ sub insight { } -sub services { - my ($self) = @_; - my $user = $self->current_user; - - if ( $self->param('action') and $self->param('action') eq 'save' ) { - my $sb = $self->param('stationboard'); - my $value = 0; - if ( $sb =~ m{ ^ \d+ $ }x and $sb >= 0 and $sb <= 4 ) { - $value = int($sb); - } - $self->users->use_external_services( - uid => $user->{id}, - set => $value - ); - $self->flash( success => 'external' ); - $self->redirect_to('account'); - } - - $self->param( stationboard => - $self->users->use_external_services( uid => $user->{id} ) ); - $self->render('use_external_links'); -} - sub webhook { my ($self) = @_; |