diff options
author | gerv%gerv.net <> | 2002-04-24 16:24:43 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-04-24 16:24:43 +0200 |
commit | 05d101e58b400b1a52adcc86515b5442b85cd2f5 (patch) | |
tree | ded36788873d147ce2a62bd76239e0e99974c621 /votes.cgi | |
parent | c29a6dcb565731ef6757a625b7374e7ff46d417c (diff) | |
download | bugzilla-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-x | votes.cgi | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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) { |