diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 13:28:56 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-02 13:28:56 +0200 |
commit | 8e99475886fa3fc23dd576cce7eaefd532c3fe5c (patch) | |
tree | 206c1923ac04eea8702805c1e02088b729ff1b9b /apps/files/admin.php | |
parent | 8c7f8546716ac77cdeaa134caf9fae22232ce213 (diff) | |
download | nextcloud-server-8e99475886fa3fc23dd576cce7eaefd532c3fe5c.tar.gz nextcloud-server-8e99475886fa3fc23dd576cce7eaefd532c3fe5c.zip |
first part of the config stuff
Diffstat (limited to 'apps/files/admin.php')
-rwxr-xr-x | apps/files/admin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php index c14a97568f0..a59a73f0a5b 100755 --- a/apps/files/admin.php +++ b/apps/files/admin.php @@ -40,14 +40,14 @@ if($_POST) { } if(isset($_POST['maxZipInputSize'])) { $maxZipInputSize=$_POST['maxZipInputSize']; - OC_Config::setValue('maxZipInputSize', OCP\Util::computerFileSize($maxZipInputSize)); + OCP\Config::setSystemValue('maxZipInputSize', OCP\Util::computerFileSize($maxZipInputSize)); } if(isset($_POST['submitFilesAdminSettings'])) { - OC_Config::setValue('allowZipDownload', isset($_POST['allowZipDownload'])); + OCP\Config::setSystemValue('allowZipDownload', isset($_POST['allowZipDownload'])); } } -$maxZipInputSize = OCP\Util::humanFileSize(OC_Config::getValue('maxZipInputSize', OCP\Util::computerFileSize('800 MB'))); -$allowZipDownload = intval(OC_Config::getValue('allowZipDownload', true)); +$maxZipInputSize = OCP\Util::humanFileSize(OCP\Config::getSystemValue('maxZipInputSize', OCP\Util::computerFileSize('800 MB'))); +$allowZipDownload = intval(OCP\Config::getSystemValue('allowZipDownload', true)); OCP\App::setActiveNavigationEntry( "files_administration" ); |