diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-04 17:05:02 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-04 17:05:02 +0100 |
commit | ca3d6ca903909c1f8ed31548d8a338e5cb6d71ba (patch) | |
tree | 2830ba1b61b841d2af2fc041c73c43a5bd946918 /perllib/FixMyStreet/App/View/Web.pm | |
parent | 91db7d51d0e2fe172e84ba4c00b4cf319e15c16d (diff) | |
parent | 688169c4b0e12302efeab07478a59a28d45f3f98 (diff) |
Merge branch 'fix-admin-proxy'
Diffstat (limited to 'perllib/FixMyStreet/App/View/Web.pm')
-rw-r--r-- | perllib/FixMyStreet/App/View/Web.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm index a92021f0c..d43d3af7e 100644 --- a/perllib/FixMyStreet/App/View/Web.pm +++ b/perllib/FixMyStreet/App/View/Web.pm @@ -176,7 +176,8 @@ sub version { $version_hash{$file} = ( stat( $path ) )[9]; } $version_hash{$file} ||= ''; - return "$file?$version_hash{$file}"; + my $admin = $self->template->context->stash->{admin} ? FixMyStreet->config('ADMIN_BASE_URL') : ''; + return "$admin$file?$version_hash{$file}"; } sub decode { |