From 43b7dc314234e476a80d9acbd07292d7286cca5a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 2 Apr 2008 22:42:25 +0000 Subject: Bug 405946: Some emails are not sent in the language chosen by the addressee - Patch by Frédéric Buclin r=wurblzap a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- whineatnews.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'whineatnews.pl') 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"; -- cgit v1.2.3-65-gdbad