diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-10-24 20:44:56 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-10-24 21:34:46 +0100 |
commit | 604d306f4fc0f0024fc9a493f391413811dfbb3f (patch) | |
tree | 37f387602688877a84614dfb16e0dda7684a6d3b /perllib/FixMyStreet/App.pm | |
parent | cd51c26830d4f6ba144874e2f26010f7b6b76636 (diff) |
More accurate config overriding for Zurich.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index cf766348f..4f70d2c68 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -208,6 +208,14 @@ sub setup_request { DateTime->DefaultLocale( 'en_US' ); } + if (FixMyStreet->test_mode) { + # Is there a better way of altering $c->config that may have + # override_config involved? + $c->setup_finished(0); + $c->config( %{ FixMyStreet->config() } ); + $c->setup_finished(1); + } + return $c; } |