Loading lib/Travel/Status/DE/HAFAS/Journey.pm +9 −6 Original line number Diff line number Diff line Loading @@ -126,17 +126,20 @@ sub new { is_cancelled => $is_cancelled, train => $train, operator => $operator, route_end => $destination, destination => $destination, route_end => $stops[-1]{name}, messages => \@messages, route => \@stops, }; if ( $journey->{stbStop} ) { if ( $hafas->{arrivals} ) { $ref->{origin} = $ref->{route_end}; } else { $ref->{destination} = $ref->{route_end}; } } bless( $ref, $obj ); Loading Loading
lib/Travel/Status/DE/HAFAS/Journey.pm +9 −6 Original line number Diff line number Diff line Loading @@ -126,17 +126,20 @@ sub new { is_cancelled => $is_cancelled, train => $train, operator => $operator, route_end => $destination, destination => $destination, route_end => $stops[-1]{name}, messages => \@messages, route => \@stops, }; if ( $journey->{stbStop} ) { if ( $hafas->{arrivals} ) { $ref->{origin} = $ref->{route_end}; } else { $ref->{destination} = $ref->{route_end}; } } bless( $ref, $obj ); Loading