diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-21 13:05:15 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-21 13:05:15 +0100 |
commit | 7c815054c7bc43d1147294faddbb822c099a1f53 (patch) | |
tree | 84a074a27b76c9c59856b17544a7ea7f78facd80 /lib/files.php | |
parent | 19bbb61b20e1e9a7c7d4f9ef645ab65fcc453416 (diff) | |
download | nextcloud-server-7c815054c7bc43d1147294faddbb822c099a1f53.tar.gz nextcloud-server-7c815054c7bc43d1147294faddbb822c099a1f53.zip |
Config file is more appropriate here
adjust default value
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files.php b/lib/files.php index 662f0b59724..57ebb9005ad 100644 --- a/lib/files.php +++ b/lib/files.php @@ -224,7 +224,7 @@ class OC_Files { * @param files $files */ static function validateZipDownload($dir, $files) { - if(!OC_Preferences::getValue('', 'files', 'allowZipDownload', 1)) { + if(!OC_Config::getValue('allowZipDownload', true)) { $l = new OC_L10N('files'); header("HTTP/1.0 409 Conflict"); $tmpl = new OC_Template( '', 'error', 'user' ); @@ -239,7 +239,7 @@ class OC_Files { exit; } - $zipLimit = OC_Preferences::getValue('', 'files', 'maxZipInputSize', OC_Helper::computerFileSize('800 MB')); + $zipLimit = OC_Config::getValue('maxZipInputSize', OC_Helper::computerFileSize('800 MB')); if($zipLimit > 0) { $totalsize = 0; if(is_array($files)){ |