diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-05-25 10:18:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-05-25 10:18:23 +0100 |
commit | f92fa912ef079d28c1392c10ede73c0b072573c1 (patch) | |
tree | 24328b22f6d3027d0d4e4eb2db734f622cca101a /perllib/FixMyStreet.pm | |
parent | eb3cebfcda16bfda4cfe261836d756e4699041aa (diff) |
Use only one templating system for emails.
Historically, emails sent offline (alerts, questionnaires, etc) used a
different templating system from those sent by the website (e.g. login
emails), though the newer system was also being used for the site name
and signature of offline emails.
Diffstat (limited to 'perllib/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet.pm | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm index 1a9c8ff60..14f3f3607 100644 --- a/perllib/FixMyStreet.pm +++ b/perllib/FixMyStreet.pm @@ -190,23 +190,6 @@ sub configure_mysociety_dbhandle { } -=head2 get_email_template - -=cut - -sub get_email_template { - # TODO further refactor this by just using Template path - my ($class, $cobrand, $lang, $template) = @_; - - my $template_path = FixMyStreet->path_to( "templates", "email", $cobrand, $lang, $template )->stringify; - $template_path = FixMyStreet->path_to( "templates", "email", $cobrand, $template )->stringify - unless -e $template_path; - $template_path = FixMyStreet->path_to( "templates", "email", "default", $template )->stringify - unless -e $template_path; - $template = Utils::read_file( $template_path ); - return $template; -} - my $tz; my $tz_f; |