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 | |
parent | 0fadbee69941efe7d08dc8533145046a9cccb76e (diff) | |
download | nextcloud-server-cfc41942e443a585e549d194f2411586df18f450.tar.gz nextcloud-server-cfc41942e443a585e549d194f2411586df18f450.zip |
make Files settings work
Diffstat (limited to 'files')
-rw-r--r-- | files/admin.php | 8 | ||||
-rw-r--r-- | files/templates/admin.php | 3 |
2 files changed, 7 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(); ?> diff --git a/files/templates/admin.php b/files/templates/admin.php index 0122865ee72..eb655447044 100644 --- a/files/templates/admin.php +++ b/files/templates/admin.php @@ -1,10 +1,13 @@ <?php OC_Util::addScript('files','admin'); ?> <form name="filesForm" action='#' method='post'> + <fieldset class="personalblock"> + <legend><strong><?php echo $l->t('File handling');?></strong></legend> <?php if($_['htaccessWorking']):?> <label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label><input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/><br/> <input type='submit' value='Save'/> <?php else:?> No settings currently available. <?php endif;?> + </fieldset> </form> |