diff options
Diffstat (limited to 'central/trunk/login.php')
-rw-r--r-- | central/trunk/login.php | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
45 | 45 | ||
46 | if (isset($errors[1])) | 46 | if (isset($errors[1])) |
47 | { | 47 | { |
48 | $template->adds('ERROR', array('ex'=>'1')); | 48 | $template->adds_block('ERROR', array('ex'=>'1')); |
49 | 49 | ||
50 | foreach ($errors as $name => $value) | 50 | foreach ($errors as $name => $value) |
51 | { | 51 | { |
52 | $template->adds('ERRORS', array( 'NAME' => $name, | 52 | $template->adds_block('ERRORS', array( 'NAME' => $name, |
53 | 'MSG' => $value['msg'])); | 53 | 'MSG' => $value['msg'])); |
54 | } | 54 | } |
55 | } | 55 | } |
@@ -85,7 +85,7 @@ function doErrors($template, $errors, $id) | |||
85 | { | 85 | { |
86 | if ($value['field'] == $id) | 86 | if ($value['field'] == $id) |
87 | { | 87 | { |
88 | $template->adds(strtoupper($id) . '_ERRS', array( 'NAME' => $name, | 88 | $template->adds_block(strtoupper($id) . '_ERRS', array( 'NAME' => $name, |
89 | 'VALUE' => $value['msg'])); | 89 | 'VALUE' => $value['msg'])); |
90 | } | 90 | } |
91 | } | 91 | } |