aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-27 10:35:08 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-27 15:08:05 +0000
commit113236d05f72e3bb5b23da9da7bb7c5ff48e0b1b (patch)
treee8dd19b7852a1abeace45a6564bccef7b01626b9 /perllib
parentb36f62bdaf4ca3775c2d6efc4974f98dbd105850 (diff)
[UK] Updates disallowed template work out message.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm15
1 files changed, 11 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index 0d2bf3663..bf7690990 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -256,10 +256,8 @@ sub about_hook {
}
}
-sub updates_disallowed {
- my $self = shift;
- my ($problem) = @_;
- my $c = $self->{c};
+sub updates_disallowed_config {
+ my ($self, $problem) = @_;
# This is a hash of council name to match, and what to do
my $cfg = $self->feature('updates_allowed') || {};
@@ -273,6 +271,15 @@ sub updates_disallowed {
last;
}
}
+ return ($type, $body);
+}
+
+sub updates_disallowed {
+ my $self = shift;
+ my ($problem) = @_;
+ my $c = $self->{c};
+
+ my ($type, $body) = $self->updates_disallowed_config($problem);
if ($type eq 'none') {
return 1;