aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-06-01 19:53:27 +0000
committerjocuri%softhome.net <>2004-06-01 19:53:27 +0000
commit1eafc024c9462b0bda63db336273d8f5652a3428 (patch)
tree1525c118719b81cac031a12c44ca621f7efef625 /process_bug.cgi
parent77a08256b4c3e6aefff2dca4946179002c8c37a3 (diff)
downloadbugs-1eafc024c9462b0bda63db336273d8f5652a3428.tar
bugs-1eafc024c9462b0bda63db336273d8f5652a3428.tar.gz
bugs-1eafc024c9462b0bda63db336273d8f5652a3428.tar.bz2
bugs-1eafc024c9462b0bda63db336273d8f5652a3428.tar.xz
bugs-1eafc024c9462b0bda63db336273d8f5652a3428.zip
Patch for bug 242161: make process_bug.cgi contain patchviewer ("diff") link like show_bug.cgi; patch by GavinS <bugzilla@chimpychompy.org>; r=vladd; a=justdave.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi8
1 files changed, 8 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 218712511..7a6e2bbc5 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());