summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-18 14:48:36 +0100
committerGitHub <noreply@github.com>2019-03-18 14:48:36 +0100
commit4824d278f9e530d7c5111dc75a1186e7b3ec580e (patch)
tree1d684d9eee65a68e144db4256ee43b66a2ae2c43 /settings
parentc41687530d59940792a5bd131d93d27769967e6e (diff)
parent970d52fc298c53d9386dcca83f2eb5fca21167af (diff)
downloadnextcloud-server-4824d278f9e530d7c5111dc75a1186e7b3ec580e.tar.gz
nextcloud-server-4824d278f9e530d7c5111dc75a1186e7b3ec580e.zip
Merge pull request #14666 from nextcloud/design/settings-header
Don't show 'Personal' header in settings when Admin section is not there
Diffstat (limited to 'settings')
-rw-r--r--settings/templates/settings/frame.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/templates/settings/frame.php b/settings/templates/settings/frame.php
index 1734a92b064..e32c4ed2fc9 100644
--- a/settings/templates/settings/frame.php
+++ b/settings/templates/settings/frame.php
@@ -30,8 +30,10 @@ script('files', 'jquery.fileupload');
<div id="app-navigation">
<ul>
- <li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li>
+ <?php if(!empty($_['forms']['admin'])) { ?>
+ <li class="app-navigation-caption"><?php p($l->t('Personal')); ?></li>
<?php
+ }
foreach($_['forms']['personal'] as $form) {
if (isset($form['anchor'])) {
$anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]);