aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Default.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-02 17:18:18 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-02 17:18:18 +0100
commit35fb71de06b30927c85bee5f542f8a1480b7d090 (patch)
tree0fcff096a18db3658c8ebdca4420942f1ce6807e /perllib/FixMyStreet/Cobrand/Default.pm
parent7cb4041271fc211f191b7436d8c5ad8474b888bf (diff)
Put cobrand confirm/submit emails in templates, not locale, adjust email handling to cope with multiple languages for a cobrand, add Email::MIME (though unused at present), and start send-reports working.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Default.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm16
1 files changed, 1 insertions, 15 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 4c7d7438a..1f1086c21 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -90,20 +90,6 @@ sub path_to_web_templates {
return FixMyStreet->path_to( 'templates/web', $self->moniker );
}
-=head2 path_to_email_templates
-
- $path = $cobrand->path_to_email_templates( );
-
-Returns the path to the templates for this cobrand - by default
-"templates/email/$moniker"
-
-=cut
-
-sub path_to_email_templates {
- my $self = shift;
- return FixMyStreet->path_to( 'templates/email', $self->moniker );
-}
-
=head1 site_restriction
Return a site restriction clause and a site key if the cobrand uses a subset of
@@ -625,7 +611,7 @@ sub email_host {
my $cobrand_moniker_uc = uc( $self->moniker );
my $email_vhost =
- mySociety::Config::get("EMAIL_VHOST_$cobrand_moniker_uc")
+ mySociety::Config::get("EMAIL_VHOST_$cobrand_moniker_uc", '')
|| mySociety::Config::get("EMAIL_VHOST")
|| '';