From fa9a4d47abcb4f82b39c33e97d333cdc9e737aec Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 12 Oct 2015 13:33:20 +0200 Subject: infoscreen: URA adjustments yet again --- templates/infoscreen.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index fac78d4..af567b1 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -131,7 +131,7 @@ % if ($departure->can('route_interesting') and $departure->route_interesting) { -%= join(' - ', map { ref($_) ? $_->name_suf : $_ } ($departure->route_interesting)); +%= join(' - ', map { $_->can('name_suf') ? $_->name_suf : $_->name } ($departure->route_interesting)); % } % elsif ($departure->can('lineref') and $departure->lineref) { %= $departure->lineref->route -- cgit v1.2.3