From: jocuri%softhome.net <> Date: Tue, 1 Jun 2004 19:53:27 +0000 (+0000) Subject: Patch for bug 242161: make process_bug.cgi contain patchviewer ("diff") link like... X-Git-Tag: bugzilla-2.18rc1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eafc024c9462b0bda63db336273d8f5652a3428;p=thirdparty%2Fbugzilla.git Patch for bug 242161: make process_bug.cgi contain patchviewer ("diff") link like show_bug.cgi; patch by GavinS ; r=vladd; a=justdave. --- diff --git a/process_bug.cgi b/process_bug.cgi index 2187125115..7a6e2bbc58 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1767,6 +1767,14 @@ if ($next_bug) { # next.html.tmpl includes edit.html.tmpl, and therefore we # need $bug defined in $vars. $vars->{'bug'} = $bug; + + # And we need to determine if Patch Viewer is installed, for + # Diff link (NB: Duplicate code with show_bug.cgi.) + eval { + require PatchReader; + $vars->{'patchviewerinstalled'} = 1; + }; + $template->process("bug/process/next.html.tmpl", $vars) || ThrowTemplateError($template->error());