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/activate.php | 6 +++--- central/trunk/changepassword.php | 6 +++--- central/trunk/login.php | 6 +++--- central/trunk/register.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'central') diff --git a/central/trunk/activate.php b/central/trunk/activate.php index 61a0fca..9706a69 100644 --- a/central/trunk/activate.php +++ b/central/trunk/activate.php @@ -48,11 +48,11 @@ function showForm($username, $code, $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'])); } } @@ -88,7 +88,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'])); } } diff --git a/central/trunk/changepassword.php b/central/trunk/changepassword.php index bdbcf6e..84c7110 100644 --- a/central/trunk/changepassword.php +++ b/central/trunk/changepassword.php @@ -60,11 +60,11 @@ function showForm($old, $new, $confirm, $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'])); } } @@ -103,7 +103,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'])); } } diff --git a/central/trunk/login.php b/central/trunk/login.php index 041376a..fc3fe21 100644 --- a/central/trunk/login.php +++ b/central/trunk/login.php @@ -45,11 +45,11 @@ function showForm($username, $password, $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'])); } } @@ -85,7 +85,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'])); } } 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