diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-03-25 18:06:02 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-03-25 18:06:02 +0100 |
commit | 4fb451040f66d26f5bf38e66eb04fb01e6b89adc (patch) | |
tree | 7e3f8d7e9a98e058639a65c4a747e5af19f81af6 /lib | |
parent | 2346f681e727783ddd9303ac03ea08dd5e33d245 (diff) |
Account: IRIS is no longer preferred; do not place it first
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travelynx/Controller/Account.pm | 9 |
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, |