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/changepassword.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'central/trunk/changepassword.php') 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'])); } } -- cgit 1.4.1