diff options
author | Struan Donald <struan@exo.org.uk> | 2012-04-03 14:39:45 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-04-03 14:39:45 +0100 |
commit | 1923dc99b708511570fe5bf207ff63362c55ca9b (patch) | |
tree | 3d63276f897bc0183d98aa98f315dec25fe317af /perllib/FixMyStreet/Cobrand/FixMyStreet.pm | |
parent | d3e033d5426144dcc7bf0da3170fbf2361d22ba6 (diff) | |
parent | a16e71730cf86cd48773ffbd8390c65e1dc2fc6a (diff) |
Merge branch 'send-report-rewrite' into bromley-new-send-reports
Conflicts:
bin/send-reports
perllib/FixMyStreet/Geocode/Bing.pm
web/js/map-OpenLayers.js
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index c971a5a82..6c0089d26 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -6,6 +6,19 @@ sub restriction { return {}; } +sub get_council_sender { + my ( $self, $area_id, $area_info ) = shift; + + my $sender_conf = mySociety::Config::get( 'SENDERS' ); + return $sender_conf->{ $council } if exists $sender_conf->{ $council }; + + return 'London' if $area_info->{type} eq 'LBO'; + + return 'Open311' if FixMyStreet::App->model("DB::Open311conf")->search( { area_id => $council, endpoint => { '!=', '' } } )->first; + + return 'Email'; +} + sub generate_problem_banner { my ( $self, $problem ) = @_; |