diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-08 21:42:25 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-08 21:43:31 +0200 |
commit | e6f6d3dabccb5f9fd42d7f0f609107a9023fc4d3 (patch) | |
tree | b99446ea286dd9df0275500c1798eb1654aadb01 /lib/template.php | |
parent | 7820e8959c1764f6260005ff8aeca41ca13c3e8e (diff) | |
download | nextcloud-server-e6f6d3dabccb5f9fd42d7f0f609107a9023fc4d3.tar.gz nextcloud-server-e6f6d3dabccb5f9fd42d7f0f609107a9023fc4d3.zip |
dont use a different navigation page for settings stuff
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/template.php b/lib/template.php index 124343bd85b..12047a38a13 100644 --- a/lib/template.php +++ b/lib/template.php @@ -242,22 +242,8 @@ class OC_Template{ // 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" ); } |