aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-03-06 16:35:35 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-03-06 16:35:35 +0000
commita4ec97a12718bf6a21aadc68e5e4bb3cc12e358a (patch)
treef14e898bf9650f43481ee46a9e378f0539eb4fe6 /perllib/FixMyStreet/App.pm
parente76d6c17cfe2bdcb8822e448a73e1b916eb22cee (diff)
parent1162d374f112fc9578cf0d8ade53d4a70f013046 (diff)
Merge branch 'supercool' of ssh://github.com/mysociety/fixmystreet into supercool
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 18cad6b89..0582d88c9 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -151,8 +151,7 @@ sub setup_request {
my $cobrand = $c->cobrand;
# append the cobrand templates to the include path
- $c->stash->{additional_template_paths} =
- [ $cobrand->path_to_web_templates->stringify ]
+ $c->stash->{additional_template_paths} = $cobrand->path_to_web_templates
unless $cobrand->is_default;
# work out which language to use
@@ -411,7 +410,7 @@ call), use this method.
sub render_fragment {
my ($c, $template, $vars) = @_;
- $vars->{additional_template_paths} = [ $c->cobrand->path_to_web_templates->stringify ]
+ $vars->{additional_template_paths} = $c->cobrand->path_to_web_templates
if $vars && !$c->cobrand->is_default;
$c->view('Web')->render($c, $template, $vars);
}