From b4e87de5d010650481a66981e78ea3c6a4cbb00c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Aug 2008 16:19:22 +0000 Subject: Central: Replaced adds with adds_block For some reason, the adds() function was being used to add block data instead of the correct function, adds_block(). Refs #25 --- central/trunk/register.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'central/trunk/register.php') diff --git a/central/trunk/register.php b/central/trunk/register.php index fd09fde..8a02d0c 100644 --- a/central/trunk/register.php +++ b/central/trunk/register.php @@ -51,11 +51,11 @@ function showForm($username, $password, $email, $errors) if (isset($errors[1])) { - $template->adds('ERROR', array('ex'=>'1')); + $template->adds_block('ERROR', array('ex'=>'1')); foreach ($errors as $name => $value) { - $template->adds('ERRORS', array( 'NAME' => $name, + $template->adds_block('ERRORS', array( 'NAME' => $name, 'MSG' => $value['msg'])); } } @@ -94,7 +94,7 @@ function doErrors($template, $errors, $id) { if ($value['field'] == $id) { - $template->adds(strtoupper($id) . '_ERRS', array( 'NAME' => $name, + $template->adds_block(strtoupper($id) . '_ERRS', array( 'NAME' => $name, 'VALUE' => $value['msg'])); } } -- cgit 1.4.1