diff options
author | lpsolit%gmail.com <> | 2008-04-02 22:42:25 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-04-02 22:42:25 +0000 |
commit | 43b7dc314234e476a80d9acbd07292d7286cca5a (patch) | |
tree | 87c77bfa7d65b7636447232feb77fe5db1d7d8d4 /relogin.cgi | |
parent | 0e4b8f785d87afacbf432f6985a3d906b35bba21 (diff) | |
download | bugs-43b7dc314234e476a80d9acbd07292d7286cca5a.tar bugs-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.gz bugs-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.bz2 bugs-43b7dc314234e476a80d9acbd07292d7286cca5a.tar.xz bugs-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 'relogin.cgi')
-rwxr-xr-x | relogin.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
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'; |