aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-09-02 15:05:19 +0200
committerMario Vavti <mario@mariovavti.com>2016-09-02 15:05:19 +0200
commitb00d0842439da9f88b4be690a5c382d5192631f0 (patch)
tree4040342b9996248539452b3356d4566f5446a6c6 /include/nav.php
parent75c1e7a193e07513680c522014481f9bd082a026 (diff)
downloadvolse-hubzilla-b00d0842439da9f88b4be690a5c382d5192631f0.tar.gz
volse-hubzilla-b00d0842439da9f88b4be690a5c382d5192631f0.tar.bz2
volse-hubzilla-b00d0842439da9f88b4be690a5c382d5192631f0.zip
show home icon in first position in nav, provide register link also if register policy is set to approve and whitespace cleanup
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 9b6896d15..4d411e603 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -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')) {