aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-23 19:25:39 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-23 19:36:32 +0000
commita126927e7989c9024eb447eff0ef8ec796bb945a (patch)
treebfafbad6826bcb316fe4212719097abea57202eb /perllib/FixMyStreet
parent7bac754791cfea00ab114134e6aa99affc0eb5e8 (diff)
use .txt suffix on email templates
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App.pm2
-rw-r--r--perllib/FixMyStreet/App/Controller/Auth.pm2
-rw-r--r--perllib/FixMyStreet/App/View/Email.pm2
3 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 18e79e6b7..d73e721bf 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -160,7 +160,7 @@ sub setup_cobrand {
=head2 send_email
- $email_sent = $c->send_email( 'email_template', $extra_stash_values );
+ $email_sent = $c->send_email( 'email_template.txt', $extra_stash_values );
Send an email by filling in the given template with values in the stash.
diff --git a/perllib/FixMyStreet/App/Controller/Auth.pm b/perllib/FixMyStreet/App/Controller/Auth.pm
index 912119cd3..3d60172cf 100644
--- a/perllib/FixMyStreet/App/Controller/Auth.pm
+++ b/perllib/FixMyStreet/App/Controller/Auth.pm
@@ -104,7 +104,7 @@ sub email_login : Private {
# log the user in, send them an email and redirect to the welcome page
$c->stash->{token} = $token_obj->token;
- $c->send_email( 'login', { to => $good_email } );
+ $c->send_email( 'login.txt', { to => $good_email } );
$c->res->redirect( $c->uri_for('token') );
}
diff --git a/perllib/FixMyStreet/App/View/Email.pm b/perllib/FixMyStreet/App/View/Email.pm
index fa46623eb..86d5c1d60 100644
--- a/perllib/FixMyStreet/App/View/Email.pm
+++ b/perllib/FixMyStreet/App/View/Email.pm
@@ -8,7 +8,7 @@ use mySociety::Locale;
use FixMyStreet;
__PACKAGE__->config(
- TEMPLATE_EXTENSION => '.html',
+ TEMPLATE_EXTENSION => '.txt',
INCLUDE_PATH => [ #
FixMyStreet->path_to( 'templates', 'email', 'default' ),
],