summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-10 12:17:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-10 12:17:51 +0200
commit2a9ca113cf5b83d2cadc4814be24a4deeae22d6d (patch)
treee125f66cae0040f2e3a5f3b754618e15c5202a80
parent0b4e9b6b25a12f9320938e18786a31b501c17d12 (diff)
hafas backend: use 'city stop', not 'stop, city' for less confusion
-rw-r--r--index.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 46f83dd..81217b0 100644
--- a/index.pl
+++ b/index.pl
@@ -92,7 +92,7 @@ sub get_results {
my $status;
if ( $backend eq 'hafas' ) {
$status = Travel::Status::DE::HAFAS->new(
- station => "${stop}, ${city}",
+ station => ( $city ? "${city} ${stop}" : $stop ),
excluded_mots => [qw[ice ic_ec d regio]],
service => $sub_backend,
);