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 --- relogin.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'relogin.cgi') diff --git a/relogin.cgi b/relogin.cgi index e2182699a..9d30d7c11 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -158,11 +158,11 @@ elsif ($action eq 'begin-sudo') { # Go ahead and send out the message now my $message; - $template->process('email/sudo.txt.tmpl', - { reason => $reason }, - \$message); + my $mail_template = Bugzilla->template_inner($target_user->settings->{'lang'}->{'value'}); + $mail_template->process('email/sudo.txt.tmpl', { reason => $reason }, \$message); + Bugzilla->template_inner(""); MessageToMTA($message); - + $vars->{'message'} = 'sudo_started'; $vars->{'target'} = $target_user->login; $target = 'global/message.html.tmpl'; -- cgit v1.2.3-24-g4f1b