mirror of
https://github.com/friendica/friendica
synced 2024-12-23 06:40:15 +00:00
don't show logout link on 'home' link if remote_user
This commit is contained in:
parent
0d9ed48738
commit
118f1d7e0a
1 changed files with 7 additions and 7 deletions
14
boot.php
14
boot.php
|
@ -762,7 +762,7 @@ function login($register = false) {
|
|||
$lostpass = t('Forgot your password?');
|
||||
$lostlink = t('Password Reset');
|
||||
|
||||
if(x($_SESSION,'authenticated')) {
|
||||
if(local_user())) {
|
||||
$tpl = load_view_file("view/logout.tpl");
|
||||
}
|
||||
else {
|
||||
|
@ -772,12 +772,12 @@ function login($register = false) {
|
|||
|
||||
$o = replace_macros($tpl,array(
|
||||
'$register_html' => $register_html,
|
||||
'$classname' => $classname,
|
||||
'$namelabel' => $namelabel,
|
||||
'$passlabel' => $passlabel,
|
||||
'$login' => $login,
|
||||
'$lostpass' => $lostpass,
|
||||
'$lostlink' => $lostlink
|
||||
'$classname' => $classname,
|
||||
'$namelabel' => $namelabel,
|
||||
'$passlabel' => $passlabel,
|
||||
'$login' => $login,
|
||||
'$lostpass' => $lostpass,
|
||||
'$lostlink' => $lostlink
|
||||
));
|
||||
|
||||
return $o;
|
||||
|
|
Loading…
Reference in a new issue