aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet.pm
diff options
context:
space:
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 {