diff options
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" ); } |