summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-17 12:08:31 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-20 14:44:44 +0200
commitd9907b6fa3c1523ee19bc6c3d888a0d71521819e (patch)
tree10554e49576d0dac186bc558842545b90e7a9388 /apps/files_sharing/ajax
parent6af0e76a03b59e82a30e80ea726b274e431a9b61 (diff)
downloadnextcloud-server-d9907b6fa3c1523ee19bc6c3d888a0d71521819e.tar.gz
nextcloud-server-d9907b6fa3c1523ee19bc6c3d888a0d71521819e.zip
move some deprecated usage of OC_Config and OC_AppConfig to \OC::server
Diffstat (limited to 'apps/files_sharing/ajax')
-rw-r--r--apps/files_sharing/ajax/list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/list.php b/apps/files_sharing/ajax/list.php
index 93964c5ed5b..7e2e54a1bd9 100644
--- a/apps/files_sharing/ajax/list.php
+++ b/apps/files_sharing/ajax/list.php
@@ -76,7 +76,7 @@ $data['dirToken'] = $linkItem['token'];
$permissions = $linkItem['permissions'];
// if globally disabled
-if (OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes') === 'no') {
+if (\OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_public_upload', 'yes') === 'no') {
// only allow reading
$permissions = \OCP\PERMISSION_READ;
}