aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-04-02 22:42:25 +0000
committerlpsolit%gmail.com <>2008-04-02 22:42:25 +0000
commit43b7dc314234e476a80d9acbd07292d7286cca5a (patch)
tree87c77bfa7d65b7636447232feb77fe5db1d7d8d4 /whineatnews.pl
parentBug 425599 – show_activity missing space for attachment flag changes (diff)
downloadbugzilla-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.gz
bugzilla-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.bz2
bugzilla-43b7dc314234e476a80d9acbd07292d7286cca5a.zip
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";