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/register.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/register.php')
| -rw-r--r-- | central/trunk/register.php | 6 |
1 files changed, 3 insertions, 3 deletions
| 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) | |||
| 51 | 51 | ||
| 52 | if (isset($errors[1])) | 52 | if (isset($errors[1])) |
| 53 | { | 53 | { |
| 54 | $template->adds('ERROR', array('ex'=>'1')); | 54 | $template->adds_block('ERROR', array('ex'=>'1')); |
| 55 | 55 | ||
| 56 | foreach ($errors as $name => $value) | 56 | foreach ($errors as $name => $value) |
| 57 | { | 57 | { |
| 58 | $template->adds('ERRORS', array( 'NAME' => $name, | 58 | $template->adds_block('ERRORS', array( 'NAME' => $name, |
| 59 | 'MSG' => $value['msg'])); | 59 | 'MSG' => $value['msg'])); |
| 60 | } | 60 | } |
| 61 | } | 61 | } |
| @@ -94,7 +94,7 @@ function doErrors($template, $errors, $id) | |||
| 94 | { | 94 | { |
| 95 | if ($value['field'] == $id) | 95 | if ($value['field'] == $id) |
| 96 | { | 96 | { |
| 97 | $template->adds(strtoupper($id) . '_ERRS', array( 'NAME' => $name, | 97 | $template->adds_block(strtoupper($id) . '_ERRS', array( 'NAME' => $name, |
| 98 | 'VALUE' => $value['msg'])); | 98 | 'VALUE' => $value['msg'])); |
| 99 | } | 99 | } |
| 100 | } | 100 | } |
