summaryrefslogtreecommitdiffstats
path: root/votes.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'votes.cgi')
-rwxr-xr-xvotes.cgi14
1 files changed, 6 insertions, 8 deletions
diff --git a/votes.cgi b/votes.cgi
index a6a86f426..eee96b960 100755
--- a/votes.cgi
+++ b/votes.cgi
@@ -110,9 +110,8 @@ sub show_bug {
$vars->{'total'} = $total;
print "Content-type: text/html\n\n";
- $template->process("voting/show-bug-votes.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ $template->process("bug/votes/list-for-bug.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
}
# Display all the votes for a particular user. If it's the user
@@ -218,9 +217,8 @@ sub show_user {
$vars->{'products'} = \@products;
print "Content-type: text/html\n\n";
- $template->process("voting/show-user-votes.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+ $template->process("bug/votes/list-for-user.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
}
# Update the user's votes in the database.
@@ -239,8 +237,8 @@ sub record_votes {
if (scalar(@buglist) == 0) {
if (!defined($::FORM{'delete_all_votes'})) {
print "Content-type: text/html\n\n";
- $template->process("voting/delete-all-votes.html.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ $template->process("bug/votes/delete-all.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
exit();
}
elsif ($::FORM{'delete_all_votes'} == 0) {