aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-25 17:04:20 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-25 17:04:20 +0100
commit7f4279e44fa11aa2aa4a5f95b50c9e16d1d6e9e3 (patch)
tree94b34023c9d5d35e524233b16dfb5faaf6a6de2d /perllib/FixMyStreet
parenteb4883cdf10c73d8985a1cd3c8eae3df7d13a34f (diff)
Bromley details in cobrand.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App/Controller/Contact.pm4
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm12
2 files changed, 14 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact.pm b/perllib/FixMyStreet/App/Controller/Contact.pm
index f28d37989..91580f05a 100644
--- a/perllib/FixMyStreet/App/Controller/Contact.pm
+++ b/perllib/FixMyStreet/App/Controller/Contact.pm
@@ -183,7 +183,7 @@ generally required to stash
sub setup_request : Private {
my ( $self, $c ) = @_;
- $c->stash->{contact_email} = $c->cobrand->contact_email;
+ $c->stash->{contact_email} = $c->cobrand->contact_email( 'contact' );
$c->stash->{contact_email} =~ s/\@/&#64;/;
for my $param (qw/em subject message/) {
@@ -205,7 +205,7 @@ Sends the email
sub send_email : Private {
my ( $self, $c ) = @_;
- my $recipient = $c->cobrand->contact_email();
+ my $recipient = $c->cobrand->contact_email( 'contact' );
my $recipient_name = $c->cobrand->contact_name();
$c->stash->{host} = $c->req->header('HOST');
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index 369e15ff0..d09937ac2 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -11,6 +11,10 @@ sub council_area { return 'Bromley'; }
sub council_name { return 'Bromley Council'; }
sub council_url { return 'bromley'; }
+sub base_url {
+ 'https://fix.bromley.gov.uk';
+}
+
sub path_to_web_templates {
my $self = shift;
return [
@@ -68,5 +72,13 @@ sub process_extras {
$self->SUPER::process_extras( @_, [ 'first_name', 'last_name' ] );
}
+sub contact_email {
+ my $self = shift;
+ my $type = shift || '';
+ return join( '@', 'info', 'bromley.gov.uk' ) if $type eq 'contact';
+ return $self->next::method();
+}
+sub contact_name { 'Bromley Council (do not reply)'; }
+
1;