summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Controller/Account.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm
index 0a424cc..e36dcc3 100644
--- a/lib/Travelynx/Controller/Account.pm
+++ b/lib/Travelynx/Controller/Account.pm
@@ -1070,9 +1070,8 @@ sub backend_form {
$backend->{homepage} = 'https://www.bahn.de';
}
elsif ( $backend->{dbris} ) {
- $type = 'DBRIS';
- $backend->{longname}
- = 'Deutsche Bahn: bahn.de';
+ $type = 'DBRIS';
+ $backend->{longname} = 'Deutsche Bahn: bahn.de';
$backend->{homepage} = 'https://www.bahn.de';
}
elsif ( $backend->{hafas} ) {
@@ -1141,14 +1140,10 @@ sub backend_form {
$backend->{type} = $type;
}
- my $iris = shift @backends;
-
@backends = map { $_->[1] }
sort { $a->[0] cmp $b->[0] }
map { [ lc( $_->{name} ), $_ ] } grep { $_->{type} } @backends;
- unshift( @backends, $iris );
-
$self->render(
'select_backend',
suggestions => \@suggested_backends,