From b5c6baf084efd29e1cd5f9328a085258bbd839d4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 18 Sep 2015 17:21:26 +0200 Subject: fix HAFAS backend moreinfo / messages support --- index.pl | 4 ++-- 1 file 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 ], } ); } -- cgit v1.2.3