diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-02-23 13:52:48 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-02-23 13:52:48 +0000 |
commit | fc1083eaf2d831b3be8cb4b25901b7a5047fe2fe (patch) | |
tree | 3e3c7e5156162be66b246c08b9df4569e1e97d96 | |
parent | 22eb2c8af5238ba07c0e7163a0a7f6516bc231d9 (diff) | |
parent | 0c82eb000b934d1cc1d9bd7e39af0bea0c555c53 (diff) |
Merge branch 'supercool' of ssh://github.com/mysociety/fixmystreet into supercool
-rw-r--r-- | perllib/FixMyStreet/App.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index d39ae1415..18cad6b89 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -411,9 +411,8 @@ call), use this method. sub render_fragment { my ($c, $template, $vars) = @_; - $vars ||= {}; $vars->{additional_template_paths} = [ $c->cobrand->path_to_web_templates->stringify ] - unless $c->cobrand->is_default; + if $vars && !$c->cobrand->is_default; $c->view('Web')->render($c, $template, $vars); } |