]> source.dussan.org Git - nextcloud-server.git/commitdiff
show settings page in the correct context
authorRobin Appelman <icewind1991@gmail.com>
Mon, 8 Aug 2011 19:51:10 +0000 (21:51 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 8 Aug 2011 19:51:10 +0000 (21:51 +0200)
admin/apps.php
admin/system.php
admin/users.php
files/admin.php
help/index.php
settings/index.php

index 4f39feab0c580bc0ce95d7382356e3c59fc62f9b..de11dccc3d56989e266040af6d32636d9bf5c3ae 100644 (file)
@@ -53,7 +53,7 @@ if($installed){
                $records[]=$record;
        }
 
-       $tmpl = new OC_Template( "admin", "appsinst", "admin" );
+       $tmpl = new OC_Template( "admin", "appsinst", "user" );
        $tmpl->assign( "apps", $records );
        $tmpl->printPage();
        unset($tmpl);
@@ -63,7 +63,7 @@ if($installed){
        if($categories==NULL){
                OC_App::setActiveNavigationEntry( "core_apps" );
 
-               $tmpl = new OC_Template( "admin", "app_noconn", "admin" );
+               $tmpl = new OC_Template( "admin", "app_noconn", "user" );
                $tmpl->printPage();
                unset($tmpl);
                exit();
@@ -82,7 +82,7 @@ if($installed){
                }
 
                // return template
-               $tmpl = new OC_Template( "admin", "apps", "admin" );
+               $tmpl = new OC_Template( "admin", "apps", "user" );
 
                $tmpl->assign( "categories", $categories );
                $tmpl->assign( "apps", $apps );
@@ -94,7 +94,7 @@ if($installed){
 
                $app=OC_OCSClient::getApplication($id);
 
-               $tmpl = new OC_Template( "admin", "app", "admin" );
+               $tmpl = new OC_Template( "admin", "app", "user" );
                $tmpl->assign( "categories", $categories );
                $tmpl->assign( "app", $app );
                $tmpl->printPage();
index 11a76132b4c209fadfb663144a6cb8546c7789f6..da77027f7aa315baf85513a5997f079a9b7933ef 100644 (file)
@@ -29,7 +29,7 @@ if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' ))
 
 OC_App::setActiveNavigationEntry( "administration" );
 
-$tmpl = new OC_Template( "admin", "system", "admin" );
+$tmpl = new OC_Template( "admin", "system", "user" );
 $tmpl->printPage();
 
 ?>
index b87f1bb5bc8a81f378db4d6518234b2d974995ec..30b9fa46d3c349eb486f06d03f539889fe9485c6 100644 (file)
@@ -48,7 +48,7 @@ foreach( OC_Group::getGroups() as $i ){
        $groups[] = array( "name" => $i );
 }
 
-$tmpl = new OC_Template( "admin", "users", "admin" );
+$tmpl = new OC_Template( "admin", "users", "user" );
 $tmpl->assign( "users", $users );
 $tmpl->assign( "groups", $groups );
 $tmpl->printPage();
index 0b8639f38ca605d8837205226ed2424a0e8e5e90..7161de6e196fb8e961c1d0ba025aec26bfab732e 100644 (file)
@@ -42,7 +42,7 @@ if(isset($_POST['maxUploadSize'])){
 
 OC_App::setActiveNavigationEntry( "files_administration" );
 // return template
-$tmpl = new OC_Template( "files", "admin", "admin" );
+$tmpl = new OC_Template( "files", "admin", "user" );
 $tmpl->assign( 'htaccessWorking', $htaccessWorking );
 $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
 $tmpl->printPage();
index f1adea0be0118de2c43c474db68f36f8c16b6c4c..642b2131737132ae68c0038aa524b287970f8f85 100644 (file)
@@ -18,7 +18,7 @@ OC_App::setActiveNavigationEntry( "help" );
 $kbe=OC_OCSClient::getKnownledgebaseEntries();
 
 
-$tmpl = new OC_Template( "help", "index", "admin" );
+$tmpl = new OC_Template( "help", "index", "user" );
 $tmpl->assign( "kbe", $kbe );
 $tmpl->assign( "pagecount", $pagecount );
 $tmpl->assign( "page", $page );
index 8b970a13c586ea6f56cf7f13d238aa87542a318f..12f48f23838c18d75a7ca31b8d3915339c4a7c36 100644 (file)
@@ -24,7 +24,7 @@ unset($languages[array_search($lang,$languages)]);
 array_unshift($languages,$lang);
 
 // Return template
-$tmpl = new OC_Template( "settings", "index", "admin");
+$tmpl = new OC_Template( "settings", "index", "user");
 $tmpl->assign('usage',OC_Helper::humanFileSize($used));
 $tmpl->assign('total_space',OC_Helper::humanFileSize($total));
 $tmpl->assign('usage_relative',$relative);