aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet.pm
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-06-04 16:07:13 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-06-04 16:08:20 +0000
commit57767fdffd92349aff21fab2e43fb6b869fd1648 (patch)
tree8cd24607267903bc3bbcac3c35e1c981ce4de00f /perllib/FixMyStreet.pm
parenta1e293164e924f182c04b009d5e1344406440326 (diff)
Comment setup_request's conf override in test_mode
Diffstat (limited to 'perllib/FixMyStreet.pm')
-rw-r--r--perllib/FixMyStreet.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm
index de55e0070..34c7bfe21 100644
--- a/perllib/FixMyStreet.pm
+++ b/perllib/FixMyStreet.pm
@@ -96,6 +96,12 @@ sub override_config($&) {
# For historical reasons, we have two ways of asking for config variables.
# Override them both, I'm sure we'll find time to get rid of one eventually.
+ #
+ # NB: though we have these two functions, templates tend to use [% c.config %]
+ # This overriding happens after $c->config is set, so note that
+ # FixMyStreet::App->setup_request rewrites $c->config if we are in
+ # test_mode, so tests should Just Work there too.
+
my $override_guard1 = Sub::Override->new(
"FixMyStreet::config",
sub {