X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Flogin.php;h=5acb157f4f0315ebdb16c8d7276b111e7e524243;hb=4aedce6864eb27a0c37b3dcae22fee0aa16ae537;hp=3a93c466facd4ffe6b5707d01033cd4c81f2b6fc;hpb=ec030076deaa0ac4f3f4d53a6114e60de2a62ae7;p=quix0rs-gnu-social.git diff --git a/actions/login.php b/actions/login.php index 3a93c466fa..5acb157f4f 100644 --- a/actions/login.php +++ b/actions/login.php @@ -60,10 +60,7 @@ class LoginAction extends Action { } function show_form($error=NULL) { - common_show_header(_t('Login')); - if ($error) { - common_element('div', array('class' => 'error'), $error); - } + common_show_header(_t('Login'), NULL, $error, array($this, 'show_top')); common_element_start('form', array('method' => 'POST', 'id' => 'login', 'action' => common_local_url('login'))); @@ -73,4 +70,14 @@ class LoginAction extends Action { common_element_end('form'); common_show_footer(); } + + function show_top($error=NULL) { + if ($error) { + common_element('p', 'error', $error); + } else { + common_element('p', 'instructions', + _t('Login with your username and password. ' . + 'Don\'t have a username yet? Choose register above. ')); + } + } }