diff options
author | mkanat%bugzilla.org <> | 2009-08-11 06:34:17 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-08-11 06:34:17 +0200 |
commit | ea25630305fbd3b55c142c32aab82f9cc7afccfa (patch) | |
tree | 1b554df79fe0a83a02075566615552783e9e873b /attachment.cgi | |
parent | 918a8c245f8d0d7d0926a015aa9a4940c14ebdd3 (diff) | |
download | bugzilla-ea25630305fbd3b55c142c32aab82f9cc7afccfa.tar.gz bugzilla-ea25630305fbd3b55c142c32aab82f9cc7afccfa.tar.xz |
Bug 509045: Make "use_keywords" a global template variable instead of having to pass it to templates all the time
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi index 8614026db..bbbf4afb3 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -523,7 +523,6 @@ sub insert { $vars->{'bugs'} = [new Bugzilla::Bug($bugid)]; $vars->{'header_done'} = 1; $vars->{'contenttypemethod'} = $cgi->param('contenttypemethod'); - $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count(); print $cgi->header(); # Generate and return the UI (HTML page) from the appropriate template. @@ -644,7 +643,6 @@ sub update { $vars->{'attachment'} = $attachment; $vars->{'bugs'} = [$bug]; $vars->{'header_done'} = 1; - $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count(); print $cgi->header(); @@ -716,7 +714,6 @@ sub delete_attachment { # Required to display the bug the deleted attachment belongs to. $vars->{'bugs'} = [$bug]; $vars->{'header_done'} = 1; - $vars->{'use_keywords'} = 1 if Bugzilla::Keyword::keyword_count(); $template->process("attachment/updated.html.tmpl", $vars) || ThrowTemplateError($template->error()); |