make home redirection and register link work again
This commit is contained in:
parent
9cd1dabe73
commit
da49a27aa2
@ -6,11 +6,8 @@ function home_init(&$a) {
|
|||||||
$ret = array();
|
$ret = array();
|
||||||
call_hooks('home_init',$ret);
|
call_hooks('home_init',$ret);
|
||||||
|
|
||||||
if(local_user() && ($a->user['nickname']))
|
if(local_user() && ($a->identity['entity_address']))
|
||||||
goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
|
goaway( $a->get_baseurl() . '/profile/' . $a->identity['entity_address']);
|
||||||
|
|
||||||
if(strlen(get_config('system','singleuser')))
|
|
||||||
goaway( $a->get_baseurl() . "/profile/" . get_config('system','singleuser'));
|
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
@ -27,7 +24,7 @@ function home_content(&$a) {
|
|||||||
if(file_exists('home.html'))
|
if(file_exists('home.html'))
|
||||||
$o .= file_get_contents('home.html');
|
$o .= file_get_contents('home.html');
|
||||||
|
|
||||||
$o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
$o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
|
||||||
|
|
||||||
call_hooks("home_content",$o);
|
call_hooks("home_content",$o);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="login-extra-links">
|
<div id="login-extra-links">
|
||||||
{{ if $register }}<a href="register" title="$register.title" id="register-link">$register.desc</a>{{ endif }}
|
{{ if $register }}<a href="zregister" title="$register.title" id="register-link">$register.desc</a>{{ endif }}
|
||||||
<a href="lostpass" title="$lostpass" id="lost-password-link" >$lostlink</a>
|
<a href="lostpass" title="$lostpass" id="lost-password-link" >$lostlink</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user