]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 242161: make process_bug.cgi contain patchviewer ("diff") link like...
authorjocuri%softhome.net <>
Tue, 1 Jun 2004 19:53:27 +0000 (19:53 +0000)
committerjocuri%softhome.net <>
Tue, 1 Jun 2004 19:53:27 +0000 (19:53 +0000)
process_bug.cgi

index 2187125115aeb811192921e901568bb6b7712c02..7a6e2bbc58f8c1d3dcb76c8577fc617cc84bce42 100755 (executable)
@@ -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());