diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-09-28 18:01:16 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-09-28 18:01:16 +0100 |
commit | a428c23753694794f3b1bddace94e869c2d7550f (patch) | |
tree | 942edc1bd2ef820997a42a31b825800243654155 /perllib/FixMyStreet/App.pm | |
parent | 101cfc70b05960cd0fdd40580e0f45563ea7b58f (diff) | |
parent | 43ccfa5285842287ef6fd53c6ca97d58e690c7fa (diff) |
Merge branch '1205-hardcoded-site-name'
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 8883bb91f..5e0bbaf93 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -191,6 +191,8 @@ sub setup_request { $c->log->debug( sprintf "Set lang to '%s' and cobrand to '%s'", $set_lang, $cobrand->moniker ); + $c->stash->{site_name} = Utils::trim_text($c->render_fragment('site-name.html')); + $c->model('DB::Problem')->set_restriction( $cobrand->site_key() ); Memcached::set_namespace( FixMyStreet->config('FMS_DB_NAME') . ":" ); |