summaryrefslogtreecommitdiffstats
path: root/createaccount.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 /createaccount.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 '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());