diff options
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-x[-rw-r--r--] | apps/files_sharing/ajax/toggleresharing.php | 4 | ||||
-rwxr-xr-x | apps/files_sharing/appinfo/app.php | 2 | ||||
-rwxr-xr-x | apps/files_sharing/settings.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/ajax/toggleresharing.php b/apps/files_sharing/ajax/toggleresharing.php index bd4d23ff79f..853b2bd5349 100644..100755 --- a/apps/files_sharing/ajax/toggleresharing.php +++ b/apps/files_sharing/ajax/toggleresharing.php @@ -3,9 +3,9 @@ OC_JSON::checkAppEnabled('files_sharing'); OC_JSON::checkAdminUser(); if ($_POST['resharing'] == true) { - OC_Appconfig::setValue('files_sharing', 'resharing', 'yes'); + OCP\Config::setAppValue('files_sharing', 'resharing', 'yes'); } else { - OC_Appconfig::setValue('files_sharing', 'resharing', 'no'); + OCP\Config::setAppValue('files_sharing', 'resharing', 'no'); } ?> diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 15f72ef0895..f80bdb9e195 100755 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -11,7 +11,7 @@ OC_Hook::connect('OC_User', 'post_deleteUser', 'OC_Share', 'removeUser'); OC_Hook::connect('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare'); OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare'); $dir = isset($_GET['dir']) ? $_GET['dir'] : '/'; -if ($dir != '/Shared' || OC_Appconfig::getValue('files_sharing', 'resharing', 'yes') == 'yes') { +if ($dir != '/Shared' || OCP\Config::getAppValue('files_sharing', 'resharing', 'yes') == 'yes') { OCP\Util::addscript("files_sharing", "share"); } OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min"); diff --git a/apps/files_sharing/settings.php b/apps/files_sharing/settings.php index 26c8df682bb..a7bdf7b9195 100755 --- a/apps/files_sharing/settings.php +++ b/apps/files_sharing/settings.php @@ -3,7 +3,7 @@ OCP\User::checkAdminUser(); OCP\Util::addscript('files_sharing', 'settings'); $tmpl = new OC_Template('files_sharing', 'settings'); -$tmpl->assign('allowResharing', OC_Appconfig::getValue('files_sharing', 'resharing', 'yes')); +$tmpl->assign('allowResharing', OCP\Config::getAppValue('files_sharing', 'resharing', 'yes')); return $tmpl->fetchPage(); ?>
\ No newline at end of file |