diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 0a424cce1f8683bbdb192ec9bfec104312583552..e36dcc3ccde4438cea568303ce620db1b93750a6 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,