summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 13:28:56 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 13:28:56 +0200
commit8e99475886fa3fc23dd576cce7eaefd532c3fe5c (patch)
tree206c1923ac04eea8702805c1e02088b729ff1b9b /apps/files
parent8c7f8546716ac77cdeaa134caf9fae22232ce213 (diff)
downloadnextcloud-server-8e99475886fa3fc23dd576cce7eaefd532c3fe5c.tar.gz
nextcloud-server-8e99475886fa3fc23dd576cce7eaefd532c3fe5c.zip
first part of the config stuff
Diffstat (limited to 'apps/files')
-rwxr-xr-xapps/files/admin.php8
-rwxr-xr-xapps/files/index.php2
2 files changed, 5 insertions, 5 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" );
diff --git a/apps/files/index.php b/apps/files/index.php
index 86b877115ca..e2a0eb80a03 100755
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -96,7 +96,7 @@ $tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir));
$tmpl->assign( "files", $files );
$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
-$tmpl->assign( 'allowZipDownload', intval(OC_Config::getValue('allowZipDownload', true)));
+$tmpl->assign( 'allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
$tmpl->printPage();
?>