show error correctly in login
darcs-hash:20080605200759-84dde-a1e8cc5c2c6a22da80f03ef692de9d0a8dcb29fc.gz
This commit is contained in:
parent
6af287f554
commit
ec030076de
|
@ -61,8 +61,8 @@ class LoginAction extends Action {
|
||||||
|
|
||||||
function show_form($error=NULL) {
|
function show_form($error=NULL) {
|
||||||
common_show_header(_t('Login'));
|
common_show_header(_t('Login'));
|
||||||
if (!is_null($error)) {
|
if ($error) {
|
||||||
common_element('div', array('class' => 'error'), $msg);
|
common_element('div', array('class' => 'error'), $error);
|
||||||
}
|
}
|
||||||
common_element_start('form', array('method' => 'POST',
|
common_element_start('form', array('method' => 'POST',
|
||||||
'id' => 'login',
|
'id' => 'login',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user