diff options
author | louise <louise> | 2009-11-26 10:04:47 +0000 |
---|---|---|
committer | louise <louise> | 2009-11-26 10:04:47 +0000 |
commit | 5b08d908a350fa094f881a239422ac01e0eb24f1 (patch) | |
tree | bd53f4de47694a2544dcb02a4210f83cc4509dbc | |
parent | 2b4b5cc079d219abc39ca3d2778623b1dafe8cbb (diff) |
Allow reports to be localized
-rwxr-xr-x | bin/send-reports | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports index 12aeba5b0..d05303184 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: send-reports,v 1.75 2009-11-23 17:25:43 louise Exp $ +# $Id: send-reports,v 1.76 2009-11-26 10:04:47 louise Exp $ use strict; require 5.8.0; @@ -62,8 +62,9 @@ my $cobrand; foreach my $row (@$unsent) { $cobrand = $row->{cobrand}; - next unless (Cobrand::email_host($cobrand)); + next unless (Cobrand::email_host($cobrand)); + Cobrand::set_lang_and_domain($cobrand, $row->{lang}); if (dbh()->selectrow_array('select email from abuse where lower(email)=?', {}, lc($row->{email}))) { dbh()->do("update problem set state='hidden' where id=?", {}, $row->{id}); dbh()->commit(); |