1
0
Fork 0

don't show logout link on 'home' link if remote_user

This commit is contained in:
Friendika 2011-02-06 23:04:10 -08:00
parent 0d9ed48738
commit 118f1d7e0a

View file

@ -762,7 +762,7 @@ function login($register = false) {
$lostpass = t('Forgot your password?'); $lostpass = t('Forgot your password?');
$lostlink = t('Password Reset'); $lostlink = t('Password Reset');
if(x($_SESSION,'authenticated')) { if(local_user())) {
$tpl = load_view_file("view/logout.tpl"); $tpl = load_view_file("view/logout.tpl");
} }
else { else {
@ -772,12 +772,12 @@ function login($register = false) {
$o = replace_macros($tpl,array( $o = replace_macros($tpl,array(
'$register_html' => $register_html, '$register_html' => $register_html,
'$classname' => $classname, '$classname' => $classname,
'$namelabel' => $namelabel, '$namelabel' => $namelabel,
'$passlabel' => $passlabel, '$passlabel' => $passlabel,
'$login' => $login, '$login' => $login,
'$lostpass' => $lostpass, '$lostpass' => $lostpass,
'$lostlink' => $lostlink '$lostlink' => $lostlink
)); ));
return $o; return $o;