about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--central/trunk/activate.php6
-rw-r--r--central/trunk/changepassword.php6
-rw-r--r--central/trunk/login.php6
-rw-r--r--central/trunk/register.php6
4 files changed, 12 insertions, 12 deletions
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)
48 48
49 if (isset($errors[1])) 49 if (isset($errors[1]))
50 { 50 {
51 $template->adds('ERROR', array('ex'=>'1')); 51 $template->adds_block('ERROR', array('ex'=>'1'));
52 52
53 foreach ($errors as $name => $value) 53 foreach ($errors as $name => $value)
54 { 54 {
55 $template->adds('ERRORS', array( 'NAME' => $name, 55 $template->adds_block('ERRORS', array( 'NAME' => $name,
56 'MSG' => $value['msg'])); 56 'MSG' => $value['msg']));
57 } 57 }
58 } 58 }
@@ -88,7 +88,7 @@ function doErrors($template, $errors, $id)
88 { 88 {
89 if ($value['field'] == $id) 89 if ($value['field'] == $id)
90 { 90 {
91 $template->adds(strtoupper($id) . '_ERRS', array( 'NAME' => $name, 91 $template->adds_block(strtoupper($id) . '_ERRS', array( 'NAME' => $name,
92 'VALUE' => $value['msg'])); 92 'VALUE' => $value['msg']));
93 } 93 }
94 } 94 }
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 }
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 }
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 }