diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-16 16:00:12 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-16 16:00:12 +0100 |
commit | cfc41942e443a585e549d194f2411586df18f450 (patch) | |
tree | cc9eec4facaf200fc8e8a247d0df9fe3af87983c /files/admin.php | |
parent | 0fadbee69941efe7d08dc8533145046a9cccb76e (diff) | |
download | nextcloud-server-cfc41942e443a585e549d194f2411586df18f450.tar.gz nextcloud-server-cfc41942e443a585e549d194f2411586df18f450.zip |
make Files settings work
Diffstat (limited to 'files/admin.php')
-rw-r--r-- | files/admin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/admin.php b/files/admin.php index 861b6037f3c..ea846202ab3 100644 --- a/files/admin.php +++ b/files/admin.php @@ -25,7 +25,7 @@ // Init owncloud require_once('../lib/base.php'); -OC_User::checkAdminUser(); +OC_Util::checkAdminUser(); $htaccessWorking=(getenv('htaccessWorking')=='true'); if(isset($_POST['maxUploadSize'])){ @@ -38,10 +38,10 @@ if(isset($_POST['maxUploadSize'])){ } OC_App::setActiveNavigationEntry( "files_administration" ); -// return template -$tmpl = new OC_Template( "files", "admin", "user" ); + +$tmpl = new OC_Template( 'files', 'admin' ); $tmpl->assign( 'htaccessWorking', $htaccessWorking ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); -$tmpl->printPage(); +return $tmpl->fetchPage(); ?> |