diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-09-18 17:21:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-09-18 17:21:26 +0200 |
commit | b5c6baf084efd29e1cd5f9328a085258bbd839d4 (patch) | |
tree | 8a36bb55fc9195384674ef94abc4efa172748764 | |
parent | e7edcfd9c675015073c914993fcf47ad4d83a640 (diff) |
fix HAFAS backend moreinfo / messages support
-rw-r--r-- | index.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ], } ); } |