From 05d101e58b400b1a52adcc86515b5442b85cd2f5 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Wed, 24 Apr 2002 14:24:43 +0000 Subject: Bug 138588 - change to use new template structure. Patch by gerv, r=myk, afranke. --- createaccount.cgi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'createaccount.cgi') 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()); -- cgit v1.2.3-24-g4f1b