aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-24 14:24:43 +0000
committergerv%gerv.net <>2002-04-24 14:24:43 +0000
commit05d101e58b400b1a52adcc86515b5442b85cd2f5 (patch)
treeded36788873d147ce2a62bd76239e0e99974c621 /createaccount.cgi
parentBug 138582 - convert all INCLUDEs to PROCESS. Patch by gerv, r=bbaetz, afranke. (diff)
downloadbugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.gz
bugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.tar.bz2
bugzilla-05d101e58b400b1a52adcc86515b5442b85cd2f5.zip
Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke.
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi13
1 files changed, 6 insertions, 7 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 9f87f4612..2456b9343 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -68,8 +68,8 @@ if (defined($login)) {
if (!ValidateNewUser($login)) {
# Account already exists
- $template->process("admin/account_exists.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ $template->process("account/exists.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());
exit;
}
@@ -77,12 +77,11 @@ if (defined($login)) {
my $password = InsertNewUser($login, $realname);
MailPassword($login, $password);
- $template->process("admin/account_created.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error());
+ $template->process("account/created.html.tmpl", $vars)
+ || DisplayError($template->error());
exit;
}
# Show the standard "would you like to create an account?" form.
-$template->process("admin/create_account.tmpl", $vars)
- || DisplayError("Template process failed: " . $template->error())
- && exit;
+$template->process("account/create.html.tmpl", $vars)
+ || ThrowTemplateError($template->error());