summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-24 16:24:43 +0200
committergerv%gerv.net <>2002-04-24 16:24:43 +0200
commit05d101e58b400b1a52adcc86515b5442b85cd2f5 (patch)
treeded36788873d147ce2a62bd76239e0e99974c621 /buglist.cgi
parentc29a6dcb565731ef6757a625b7374e7ff46d417c (diff)
downloadbugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.gz
bugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.xz
Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi22
1 files changed, 10 insertions, 12 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 53685e96d..31f15b02e 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -69,7 +69,7 @@ ConnectToDatabase();
# Determine the format in which the user would like to receive the output.
# Uses the default format if the user did not specify an output format;
# otherwise validates the user's choice against the list of available formats.
-my $format = ValidateOutputFormat($::FORM{'format'});
+my $format = ValidateOutputFormat($::FORM{'format'}, "list");
# Whether or not the user wants to change multiple bugs.
my $dotweak = $::FORM{'tweak'} ? 1 : 0;
@@ -117,7 +117,7 @@ if ($::buffer =~ /&cmd-/) {
$vars->{'url'} = $url;
$vars->{'link'} = "Click here if the page does not redisplay automatically.";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ || ThrowTemplateError($template->error());
exit;
}
@@ -1053,7 +1053,7 @@ CMD: for ($::FORM{'cmdtype'}) {
$vars->{'url'} = $url;
$vars->{'link'} = "Click here if the page does not redisplay automatically.";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ || ThrowTemplateError($template->error());
exit;
};
@@ -1069,7 +1069,7 @@ CMD: for ($::FORM{'cmdtype'}) {
$vars->{'url'} = "query.cgi";
$vars->{'link'} = "Go back to the query page.";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ || ThrowTemplateError($template->error());
exit;
};
@@ -1088,7 +1088,7 @@ CMD: for ($::FORM{'cmdtype'}) {
$vars->{'url'} = "query.cgi";
$vars->{'link'} = "Go back to the query page, using the new default.";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ || ThrowTemplateError($template->error());
exit;
};
@@ -1128,7 +1128,7 @@ CMD: for ($::FORM{'cmdtype'}) {
$vars->{'url'} = "query.cgi";
$vars->{'link'} = "Go back to the query page.";
$template->process("global/message.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ || ThrowTemplateError($template->error());
exit;
};
}
@@ -1361,9 +1361,8 @@ if ($serverpush) {
print "Content-Type: text/html\n\n";
# Generate and return the UI (HTML page) from the appropriate template.
- $template->process("buglist/server-push.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ $template->process("list/server-push.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
}
# Connect to the shadow database if this installation is using one to improve
@@ -1565,9 +1564,8 @@ print "\n"; # end HTTP headers
################################################################################
# Generate and return the UI (HTML page) from the appropriate template.
-$template->process("buglist/$format->{'template'}", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+$template->process("list/$format->{'template'}", $vars)
+ || ThrowTemplateError($template->error());
################################################################################