aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-10-10 14:50:30 +0100
committerStruan Donald <struan@exo.org.uk>2011-10-10 14:50:30 +0100
commit6e7276b843fde5e0490c3859f4beb92538004c0e (patch)
tree51bbf37602f6f3c6c83eae8a80e22a5a99c49194 /bin/send-reports
parenta8b2d90c78103024b58b1760db72ab5c9397511b (diff)
parent5eb4f4e746283b4e945b52745503baa4da4f345f (diff)
Merge remote branch 'origin/master' into open311-consumer
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/send-reports b/bin/send-reports
index fab2977a2..1ca0b51f0 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -12,7 +12,6 @@ require 5.8.0;
use Digest::MD5;
use Encode;
use Error qw(:try);
-use File::Slurp;
use JSON;
use LWP::UserAgent;
use LWP::Simple;
@@ -119,7 +118,7 @@ while (my $row = $unsent->next) {
push @to, [ $council_email, $name ];
@recips = ($council_email);
$send_email = 1;
- $template = File::Slurp::read_file("$FindBin::Bin/../templates/email/emptyhomes/" . $row->lang . "/submit.txt");
+ $template = Utils::read_file("$FindBin::Bin/../templates/email/emptyhomes/" . $row->lang . "/submit.txt");
} else {
@@ -171,7 +170,7 @@ while (my $row = $unsent->next) {
my $template_path = FixMyStreet->path_to( "templates", "email", $cobrand->moniker, $template )->stringify;
$template_path = FixMyStreet->path_to( "templates", "email", "default", $template )->stringify
unless -e $template_path;
- $template = File::Slurp::read_file( $template_path );
+ $template = Utils::read_file( $template_path );
if ($h{category} eq _('Other')) {
$h{category_footer} = _('this type of local problem');