diff options
author | Sunil Joshi <joshi_sunil@in.com> | 2013-09-26 04:02:01 +0200 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2013-09-26 04:02:01 +0200 |
commit | 2fe007151dd2d7caec031cd1fca617eac47f2549 (patch) | |
tree | 17c8e3e24167a272d69a98ff548b0c52770edbe8 | |
parent | 58c09a1646d839d5aa61c0de844a0ccae89c3cf4 (diff) | |
download | bugzilla-2fe007151dd2d7caec031cd1fca617eac47f2549.tar.gz bugzilla-2fe007151dd2d7caec031cd1fca617eac47f2549.tar.xz |
Bug 621216 - Don't call GetQuip() if the user doesn't want quips
r=simon, a=simon
-rwxr-xr-x | buglist.cgi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi index 00d67c599..eda2e988d 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -905,7 +905,10 @@ if (scalar(@bugowners) > 1 && $user->in_group('editbugs')) { # the list more compact. $vars->{'splitheader'} = $cgi->cookie('SPLITHEADER') ? 1 : 0; -$vars->{'quip'} = GetQuip(); +if ($user->settings->{'display_quips'}->{'value'} eq 'on') { + $vars->{'quip'} = GetQuip(); +} + $vars->{'currenttime'} = localtime(time()); # See if there's only one product in all the results (or only one product |