diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-16 16:19:22 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-16 16:19:22 +0000 |
| commit | b4e87de5d010650481a66981e78ea3c6a4cbb00c (patch) | |
| tree | 0b54413ba2c71f9d70f7a6321db0a81b99d748be /central/trunk/changepassword.php | |
| parent | 1e935eea66bb0ad46e5599619e77d995f538cdb6 (diff) | |
| download | instadisc-b4e87de5d010650481a66981e78ea3c6a4cbb00c.tar.gz instadisc-b4e87de5d010650481a66981e78ea3c6a4cbb00c.tar.bz2 instadisc-b4e87de5d010650481a66981e78ea3c6a4cbb00c.zip | |
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
Diffstat (limited to 'central/trunk/changepassword.php')
| -rw-r--r-- | central/trunk/changepassword.php | 6 |
1 files changed, 3 insertions, 3 deletions
| 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) | |||
| 60 | 60 | ||
| 61 | if (isset($errors[1])) | 61 | if (isset($errors[1])) |
| 62 | { | 62 | { |
| 63 | $template->adds('ERROR', array('ex'=>'1')); | 63 | $template->adds_block('ERROR', array('ex'=>'1')); |
| 64 | 64 | ||
| 65 | foreach ($errors as $name => $value) | 65 | foreach ($errors as $name => $value) |
| 66 | { | 66 | { |
| 67 | $template->adds('ERRORS', array( 'NAME' => $name, | 67 | $template->adds_block('ERRORS', array( 'NAME' => $name, |
| 68 | 'MSG' => $value['msg'])); | 68 | 'MSG' => $value['msg'])); |
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| @@ -103,7 +103,7 @@ function doErrors($template, $errors, $id) | |||
| 103 | { | 103 | { |
| 104 | if ($value['field'] == $id) | 104 | if ($value['field'] == $id) |
| 105 | { | 105 | { |
| 106 | $template->adds(strtoupper($id) . '_ERRS', array( 'NAME' => $name, | 106 | $template->adds_block(strtoupper($id) . '_ERRS', array( 'NAME' => $name, |
| 107 | 'VALUE' => $value['msg'])); | 107 | 'VALUE' => $value['msg'])); |
| 108 | } | 108 | } |
| 109 | } | 109 | } |
