show home icon in first position in nav, provide register link also if register policy is set to approve and whitespace cleanup

This commit is contained in:
Mario Vavti
2016-09-02 15:05:19 +02:00
parent 75c1e7a193
commit b00d084243
2 changed files with 41 additions and 37 deletions

View File

@@ -145,10 +145,10 @@ EOT;
$homelink = (($observer) ? $observer['xchan_url'] : '');
}
if((App::$module != 'home') && (! (local_channel())))
if(! local_channel())
$nav['home'] = array($homelink, t('Home'), "", t('Home Page'),'home_nav_btn');
if((App::$config['system']['register_policy'] == REGISTER_OPEN) && (! $_SESSION['authenticated']))
if((App::$config['system']['register_policy'] == REGISTER_OPEN) || (App::$config['system']['register_policy'] == REGISTER_APPROVE) && (! $_SESSION['authenticated']))
$nav['register'] = array('register',t('Register'), "", t('Create an account'),'register_nav_btn');
if(! get_config('system','hide_help')) {