summaryrefslogtreecommitdiffstats
path: root/whineatnews.pl
diff options
context:
space:
mode:
Diffstat (limited to 'whineatnews.pl')
-rwxr-xr-xwhineatnews.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/whineatnews.pl b/whineatnews.pl
index 19b0e44fc..3bfe29871 100755
--- a/whineatnews.pl
+++ b/whineatnews.pl
@@ -88,7 +88,7 @@ foreach my $email (sort (keys %bugs)) {
$vars->{'bugs'} = \@bugs;
my $msg;
- my $template = Bugzilla->template_inner($user->settings->{'lang'}->{'value'});
+ my $template = Bugzilla->template_inner($user->setting('lang'));
$template->process("email/whine.txt.tmpl", $vars, \$msg)
or die($template->error());