diff options
author | Matthew Somerville <matthew@dracos.co.uk> | 2011-03-25 15:25:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@dracos.co.uk> | 2011-03-25 15:25:06 +0000 |
commit | f931e2f7146ee271807315a9830c71afc8ad6eb5 (patch) | |
tree | 042b0fd56636fdefde655b2e5d62d210a3d4776f /bin/send-questionnaires | |
parent | 71c4b7a598c6b0b441eef63b1e1e016bd45e9991 (diff) | |
parent | 8db1506fb88902e70350d15ba9484180c9d9b3bb (diff) |
Merge branch 'master' into reportemptyhomes
Conflicts:
web/css/cobrands/emptyhomes/emptyhomes.css
Diffstat (limited to 'bin/send-questionnaires')
-rwxr-xr-x | bin/send-questionnaires | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/send-questionnaires b/bin/send-questionnaires index eb67cd5d1..d3945bf12 100755 --- a/bin/send-questionnaires +++ b/bin/send-questionnaires @@ -17,6 +17,7 @@ use lib "$FindBin::Bin/../perllib"; use lib "$FindBin::Bin/../commonlib/perllib"; use File::Slurp; use CGI; # XXX Awkward kludge +use Encode; use CronFns; use Page; @@ -62,7 +63,7 @@ foreach my $row (@$unsent) { my @all_councils = split /,|\|/, $row->{council}; my $cobrand = $row->{cobrand}; my $lang = $row->{lang}; - Cobrand::set_lang_and_domain($cobrand, $lang); + Cobrand::set_lang_and_domain($cobrand, $lang, 1); # Cobranded and non-cobranded messages can share a database. In this case, the conf file # should specify a vhost to send the reports for each cobrand, so that they don't get sent # more than once if there are multiple vhosts running off the same database. The email_host |