summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-17 19:38:04 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-17 19:38:04 +0200
commit47223ae2d98cf74101fd42a49d388ba48d01f80e (patch)
tree0390c9d89f34bc52be115e09cf8b5440ee2a902e /lib/template.php
parent1ffb09b38a9521e5421362a895c777fc0468ce38 (diff)
downloadnextcloud-server-47223ae2d98cf74101fd42a49d388ba48d01f80e.tar.gz
nextcloud-server-47223ae2d98cf74101fd42a49d388ba48d01f80e.zip
Working subnavigation
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/template.php b/lib/template.php
index 0e1c268efaa..dd1943ae7f5 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -198,16 +198,10 @@ class OC_TEMPLATE{
{
$page = new OC_TEMPLATE( "core", "layout.admin" );
// Add menu data
- $navigation = array();
if( OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){
- foreach( OC_APP::getAdminPages() as $i ){
- $navigation[] = $i;
- }
+ $page->assign( "settingsnavigation", OC_APP::getSettingsNavigation());
}
- foreach( OC_APP::getSettingsPages() as $i ){
- $navigation[] = $i;
- }
- $page->assign( "navigation", $navigation );
+ $page->assign( "adminnavigation", OC_APP::getAdminNavigation());
}
else
{