summaryrefslogtreecommitdiffstats
path: root/whineatnews.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-04-03 00:42:25 +0200
committerlpsolit%gmail.com <>2008-04-03 00:42:25 +0200
commit43b7dc314234e476a80d9acbd07292d7286cca5a (patch)
tree87c77bfa7d65b7636447232feb77fe5db1d7d8d4 /whineatnews.pl
parent0e4b8f785d87afacbf432f6985a3d906b35bba21 (diff)
downloadbugzilla-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.gz
bugzilla-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.xz
Bug 405946: Some emails are not sent in the language chosen by the addressee - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
Diffstat (limited to 'whineatnews.pl')
-rwxr-xr-xwhineatnews.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/whineatnews.pl b/whineatnews.pl
index 5c1ec655d..df9006230 100755
--- a/whineatnews.pl
+++ b/whineatnews.pl
@@ -85,9 +85,11 @@ foreach my $email (sort (keys %bugs)) {
$vars->{'bugs'} = \@bugs;
my $msg;
- my $template = Bugzilla->template;
- $template->process("email/whine.txt.tmpl", $vars, \$msg);
+ my $template = Bugzilla->template_inner($user->settings->{'lang'}->{'value'});
+ $template->process("email/whine.txt.tmpl", $vars, \$msg)
+ or die($template->error());
+ Bugzilla->template_inner("");
MessageToMTA($msg);
print "$email " . join(" ", @{$bugs{$email}}) . "\n";