]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Nav.php
empty is not isset ...
[friendica.git] / src / Content / Nav.php
index c437c6e2a1859cbcce1bf5a4323a89bbc60d95c0..b0fe8a14e6cd594852eb5f41d51fd648094e302d 100644 (file)
@@ -161,7 +161,8 @@ class Nav
                        }
                }
 
-               if (local_user() || Config::get('system', 'community_page_style') != CP_NO_COMMUNITY_PAGE) {
+               if ((local_user() || Config::get('system', 'community_page_style') != CP_NO_COMMUNITY_PAGE) &&
+                       !(Config::get('system', 'community_page_style') == CP_NO_INTERNAL_COMMUNITY)) {
                        $nav['community'] = ['community', L10n::t('Community'), '', L10n::t('Conversations on this and other servers')];
                }
 
@@ -173,6 +174,10 @@ class Nav
 
                $nav['about'] = ['friendica', L10n::t('Information'), '', L10n::t('Information about this friendica instance')];
 
+               if (Config::get('system', 'tosdisplay')) {
+                       $nav['tos'] = ['tos', L10n::t('Terms of Service'), '', L10n::t('Terms of Service of this Friendica instance')];
+               }
+
                // The following nav links are only show to logged in users
                if (local_user()) {
                        $nav['network'] = ['network', L10n::t('Network'), '', L10n::t('Conversations from your friends')];