diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-08-08 23:16:30 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-08-08 23:16:30 +0200 |
commit | 962907ee6f12f20c374263d6507d3557bb053e3c (patch) | |
tree | 90e387c638e4fd697b96f0fba7f0a75ff140226c /lib/template.php | |
parent | 4b967a941426dbc7994105208e2226524651bf6d (diff) | |
parent | d1d47eb5eb28d9a62f3a16cc3b1be4e0136bed8b (diff) | |
download | nextcloud-server-962907ee6f12f20c374263d6507d3557bb053e3c.tar.gz nextcloud-server-962907ee6f12f20c374263d6507d3557bb053e3c.zip |
Merge branch 'master' of git://anongit.kde.org/owncloud
Conflicts:
lib/template.php
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/lib/template.php b/lib/template.php index 37da1919556..2ba26eebac8 100644 --- a/lib/template.php +++ b/lib/template.php @@ -233,23 +233,16 @@ class OC_Template{ $search=new OC_Template( 'core', 'part.searchbox'); $search->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' )); $page->assign('searchbox', $search->fetchPage()); + if(array_search(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false){ + $page->assign('bodyid','body-settings'); + }else{ + $page->assign('bodyid','body-user'); + } // Add navigation entry $page->assign( "navigation", OC_App::getNavigation()); - } - elseif( $this->renderas == "admin" ){ - $page = new OC_Template( "core", "layout.admin" ); - $search=new OC_Template( 'core', 'part.searchbox'); - $search->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' )); - $page->assign('searchbox', $search->fetchPage()); - - // Add menu data - if( OC_Group::inGroup( $_SESSION["user_id"], "admin" )){ - $page->assign( "adminnavigation", OC_App::getAdminNavigation()); - } $page->assign( "settingsnavigation", OC_App::getSettingsNavigation()); - } - else{ + }else{ $page = new OC_Template( "core", "layout.guest" ); } |