summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-24 12:02:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-24 12:02:09 +0200
commitc067fdab9ecde8dfa4c1d897762ca38ecf22eeb9 (patch)
treec0c002f110c3268835db860e56ec3684b1f12e8f
parent782213d9c1578e4f47a6dceb71714f06952404fa (diff)
use stop='city stop' for !efa-backends (cause that's what the backend gets anyways)1.00
-rw-r--r--index.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 5591d30..df3e870 100644
--- a/index.pl
+++ b/index.pl
@@ -590,6 +590,14 @@ get '/_redirect' => sub {
$suffix = '.html';
}
+ if ( $city
+ and $params->param('backend')
+ and $params->param('backend') !~ m{ ^ ( efa | vrr ) }x )
+ {
+ $stop = "$city $stop";
+ $city = undef;
+ }
+
my $params_s = $params->to_string;
if ($city) {