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.

This commit is contained in:
jocuri%softhome.net 2004-06-01 12:53:27 +00:00
Родитель 3059a616aa
Коммит 45d0dfa661
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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());