diff options
| author | gerv%gerv.net <> | 2002-04-24 14:24:43 +0000 |
|---|---|---|
| committer | gerv%gerv.net <> | 2002-04-24 14:24:43 +0000 |
| commit | 05d101e58b400b1a52adcc86515b5442b85cd2f5 (patch) | |
| tree | ded36788873d147ce2a62bd76239e0e99974c621 /post_bug.cgi | |
| parent | c29a6dcb565731ef6757a625b7374e7ff46d417c (diff) | |
| download | bugs-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar bugs-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.gz bugs-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.bz2 bugs-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.xz bugs-05d101e58b400b1a52adcc86515b5442b85cd2f5.zip | |
Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke.
Diffstat (limited to 'post_bug.cgi')
| -rwxr-xr-x | post_bug.cgi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index a50369592..b727396d0 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -57,7 +57,8 @@ confirm_login(); my $comment; $vars->{'form'} = \%::FORM; -$template->process("entry/comment.txt.tmpl", $vars, \$comment) + +$template->process("bug/create/initial-comment.txt.tmpl", $vars, \$comment) || ThrowTemplateError($template->error()); ValidateComment($comment); @@ -80,8 +81,8 @@ if (defined $::FORM{'maketemplate'}) { $vars->{'url'} = $::buffer; print "Content-type: text/html\n\n"; - $template->process("entry/create-template.html.tmpl", $vars) - || DisplayError("Template process failed: " . $template->error()); + $template->process("bug/create/make-template.html.tmpl", $vars) + || ThrowTemplateError($template->error()); exit; } @@ -301,5 +302,5 @@ $vars->{'bug_id'} = $id; $vars->{'mailresults'} = $mailresults; print "Content-type: text/html\n\n"; -$template->process("entry/post-bug.html.tmpl", $vars) - || DisplayError("Template process failed: " . $template->error()); +$template->process("bug/create/created.html.tmpl", $vars) + || ThrowTemplateError($template->error()); |
