aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/UK.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-08-29 17:43:22 +0100
committerStruan Donald <struan@exo.org.uk>2012-08-29 17:43:22 +0100
commit0fad1a7b85ac83dce778b7dd22cd9d74f524ce23 (patch)
treeb74e71b18b6cd8d267b29b264f8af89e801b9ca9 /perllib/FixMyStreet/Cobrand/UK.pm
parent716c333de51d06e289f0dd798ec675b6466e336a (diff)
allow endpoints to be configured at a category level
default cobrand now checks for endpoint configuration and only extra fallbacks are in UK cobrand
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/UK.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/UK.pm12
1 files changed, 2 insertions, 10 deletions
diff --git a/perllib/FixMyStreet/Cobrand/UK.pm b/perllib/FixMyStreet/Cobrand/UK.pm
index c2618cbd9..f0f3e85f6 100644
--- a/perllib/FixMyStreet/Cobrand/UK.pm
+++ b/perllib/FixMyStreet/Cobrand/UK.pm
@@ -31,16 +31,8 @@ sub disambiguate_location {
};
}
-sub get_council_sender {
- my ( $self, $area_id, $area_info ) = @_;
-
- my $send_method;
-
- my $council_config = FixMyStreet::App->model("DB::Open311conf")->search( { area_id => $area_id } )->first;
- $send_method = $council_config->send_method if $council_config;
-
- return $send_method if $send_method;
-
+sub _fallback_council_sender {
+ my ( $self, $area_id, $area_info, $category ) = @_;
return 'London' if $area_info->{type} eq 'LBO';
return 'NI' if $area_info->{type} eq 'LGD';
return 'Email';