summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-18 17:21:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-18 17:21:26 +0200
commitb5c6baf084efd29e1cd5f9328a085258bbd839d4 (patch)
tree8a36bb55fc9195384674ef94abc4efa172748764
parente7edcfd9c675015073c914993fcf47ad4d83a640 (diff)
fix HAFAS backend moreinfo / messages support
-rw-r--r--index.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.pl b/index.pl
index 3c2c305..a4dea51 100644
--- a/index.pl
+++ b/index.pl
@@ -435,11 +435,12 @@ sub handle_request {
else {
$info = $result->info;
if ($info) {
- $moreinfo = [ [ 'RIS', $info ] ];
+ $moreinfo = [ [ 'HAFAS', $info ] ];
}
if ( $result->delay and $result->delay > 0 ) {
$info = 'ca. +' . $result->delay . ': ' . $info;
}
+ push( @{$moreinfo}, map { [ 'HAFAS', $_ ] } $result->messages );
}
my $time = $result->time;
@@ -658,7 +659,6 @@ sub handle_request {
canceled_stops => [],
replaced_by => [],
replacement_for => [],
- route_info => [ $result->messages ],
}
);
}