From 10a81429e40ca1d2a464de94a63ecade51a79b89 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 6 Mar 2012 14:40:02 +0000 Subject: Do the stringify/array in the cobrand, for future time when we need multiple results in a cobrand. --- perllib/FixMyStreet/App.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'perllib/FixMyStreet/App.pm') 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); } -- cgit v1.2.3