summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-10-09 13:06:49 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-10-09 13:06:49 +0200
commit42f85516b97b326c24ac0c0cc4727557e0bd32b1 (patch)
treedf91c130d0f5fe76f1574921de29242db94e569c
parent533175f7b46b29284c5944dc1d5851bb81f4a3fe (diff)
render_{html,image}: make_infoboard_lines need to know the backend
Some shorting rules only apply to DB
-rw-r--r--cgi/index.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 34edc6f..25a4da1 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -293,6 +293,7 @@ sub render_html {
my @departures = make_infoboard_lines(
city => $self->stash('city'),
stop => $self->stash('stop'),
+ backend => scalar $self->param('backend'),
no_lines => scalar $self->param('no_lines'),
offset => scalar $self->param('offset'),
want_crop => scalar $self->param('want_crop'),
@@ -369,6 +370,7 @@ sub render_image {
my @departures = make_infoboard_lines(
city => $self->stash('city'),
stop => $self->stash('stop'),
+ backend => scalar $self->param('backend'),
no_lines => scalar $self->param('no_lines'),
offset => scalar $self->param('offset'),
want_crop => scalar $self->param('want_crop'),