summaryrefslogtreecommitdiffstats
path: root/votes.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 /votes.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 '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) {