diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-17 19:38:04 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-17 19:38:04 +0200 |
commit | 47223ae2d98cf74101fd42a49d388ba48d01f80e (patch) | |
tree | 0390c9d89f34bc52be115e09cf8b5440ee2a902e /lib/template.php | |
parent | 1ffb09b38a9521e5421362a895c777fc0468ce38 (diff) | |
download | nextcloud-server-47223ae2d98cf74101fd42a49d388ba48d01f80e.tar.gz nextcloud-server-47223ae2d98cf74101fd42a49d388ba48d01f80e.zip |
Working subnavigation
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 10 |
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 { |