Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 16:11:29 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 16:11:29 +0400
commitff66600bc060dd2713b88b4af88e5a0a291710e0 (patch)
treec1b796ddf938025ac1cc31d0f8414c55a31840aa /apps/files_sharing
parent8e99475886fa3fc23dd576cce7eaefd532c3fe5c (diff)
port appconfig
Diffstat (limited to 'apps/files_sharing')
-rwxr-xr-x[-rw-r--r--]apps/files_sharing/ajax/toggleresharing.php4
-rwxr-xr-xapps/files_sharing/appinfo/app.php2
-rwxr-xr-xapps/files_sharing/settings.php2
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