aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-13 21:57:10 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-13 21:57:10 +0100
commit0a512ce7d620a403a081b0bed500272e4ed55cf7 (patch)
tree8c924fe23f683cfb1f7de3e50642fed090a53b68 /perllib/FixMyStreet/App.pm
parent52a27eb4589102f373dd4835a231301ad6060908 (diff)
Move default cobrand to new design.
Due to old cobrands, this involves the subclasses implementing the web templates dir to ignore what the default is doing. A vaguely garish yet pleasing colour scheme has been chosen so that the site is both usable and suggests you may want to change it.
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 0adf66ee9..3096f2f72 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -153,8 +153,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
- unless $cobrand->is_default;
+ $c->stash->{additional_template_paths} = $cobrand->path_to_web_templates;
# work out which language to use
my $lang_override = $c->get_override('lang');
@@ -421,7 +420,7 @@ call), use this method.
sub render_fragment {
my ($c, $template, $vars) = @_;
$vars->{additional_template_paths} = $c->cobrand->path_to_web_templates
- if $vars && !$c->cobrand->is_default;
+ if $vars;
$c->view('Web')->render($c, $template, $vars);
}