summaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2017-03-03 15:09:08 +0100
committerJulius Härtl <jus@bitgrid.net>2017-03-16 11:55:10 +0100
commit780400302cc0d2fac77ae5640e4f572707c36665 (patch)
tree9d400969aa39b4d3457e07fa643dee5b595c7e21 /core/templates/layout.user.php
parent25e18b840ba305762e489baa4138229261acd549 (diff)
downloadnextcloud-server-780400302cc0d2fac77ae5640e4f572707c36665.tar.gz
nextcloud-server-780400302cc0d2fac77ae5640e4f572707c36665.zip
Rebuild menu to keep order of icons correct
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 58c666fe714..f5be365a365 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -85,8 +85,9 @@
</li>
<?php
/* show "More apps" link to app administration directly in app navigation, as last entry */
+ if(OC_User::isAdminUser(OC_User::getUser())):
?>
- <li id="apps-management" <?php if(OC_User::isAdminUser(OC_User::getUser()) && count($_['navigation'])>$headerIconCount-1): ?>class="hidden"<?php endif; ?>>
+ <li id="apps-management" <?php if(count($_['navigation'])>$headerIconCount-1): ?>class="hidden"<?php endif; ?>>
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
<img src="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>" />
@@ -97,6 +98,7 @@
</span>
</a>
</li>
+ <?php endif; ?>
</ul>
</div>