diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
commit | 7da8f20c36726fd205ae48130f07db49fab745e0 (patch) | |
tree | 9573ce8c11fd8a067ad74a1aedb452784654b076 /bin/send-questionnaires | |
parent | 36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff) | |
parent | a88db262384d3800c36589bb6d1a933b9319e2df (diff) |
Merge branch 'master' into migrate_to_catalyst
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 |