From 037942d0b264bc6b11a67e1e3c84d6a215748558 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 25 Jul 2011 22:16:26 +0800 Subject: Bug 589128: Adds a preference allowing users to choose between text or html for bugmail. r=LpSolit, a=LpSolit --- Bugzilla/Flag.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Flag.pm') diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index e8d30bd20..a4b5a026a 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -970,7 +970,7 @@ sub notify { # use the default language for email notifications. my $default_lang; if (grep { !$_ } values %recipients) { - $default_lang = Bugzilla::User->new()->settings->{'lang'}->{'value'}; + $default_lang = Bugzilla::User->new()->setting('lang'); } foreach my $to (keys %recipients) { @@ -987,7 +987,7 @@ sub notify { 'threadingmarker' => build_thread_marker($bug->id, $thread_user_id) }; my $lang = $recipients{$to} ? - $recipients{$to}->settings->{'lang'}->{'value'} : $default_lang; + $recipients{$to}->setting('lang') : $default_lang; my $template = Bugzilla->template_inner($lang); my $message; -- cgit v1.2.3-24-g4f1b