summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorjkeiser%netscape.com <>2003-08-20 09:45:39 +0200
committerjkeiser%netscape.com <>2003-08-20 09:45:39 +0200
commitd08d7d95cfb5813b08f4c0bbc50cc435f6cf275c (patch)
tree3cb6ca922ed6198377ce111ea7d0ff0ec4156214 /show_bug.cgi
parent3efe1a905d11fe607e1a2e15989ff5ba001f757b (diff)
downloadbugzilla-d08d7d95cfb5813b08f4c0bbc50cc435f6cf275c.tar.gz
bugzilla-d08d7d95cfb5813b08f4c0bbc50cc435f6cf275c.tar.xz
Check for PatchReader as a part of the installation and disable the "Diff"
links if it is not there (bug 215268)
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 711b7201b..c7a780404 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -73,6 +73,12 @@ if ($single) {
}
}
+# Determine if Patch Viewer is installed, for Diff link
+eval {
+ require PatchReader;
+ $vars->{'patchviewerinstalled'} = 1;
+};
+
$vars->{'bugs'} = \@bugs;
# Next bug in list (if there is one)