diff options
-rw-r--r-- | templates/infoscreen.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ </span> <!-- moreinfo --> <span class="route"> % 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 |