summaryrefslogtreecommitdiffstats
path: root/apps/external
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-02 14:11:29 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-02 14:11:29 +0200
commitff66600bc060dd2713b88b4af88e5a0a291710e0 (patch)
treec1b796ddf938025ac1cc31d0f8414c55a31840aa /apps/external
parent8e99475886fa3fc23dd576cce7eaefd532c3fe5c (diff)
downloadnextcloud-server-ff66600bc060dd2713b88b4af88e5a0a291710e0.tar.gz
nextcloud-server-ff66600bc060dd2713b88b4af88e5a0a291710e0.zip
port appconfig
Diffstat (limited to 'apps/external')
-rwxr-xr-xapps/external/ajax/setsites.php2
-rwxr-xr-x[-rw-r--r--]apps/external/lib/external.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/external/ajax/setsites.php b/apps/external/ajax/setsites.php
index 5f36b3d13d5..c14daa258c1 100755
--- a/apps/external/ajax/setsites.php
+++ b/apps/external/ajax/setsites.php
@@ -19,7 +19,7 @@ for ($i = 0; $i < sizeof($_POST['site_name']); $i++) {
if (sizeof($sites) == 0)
OC_Appconfig::deleteKey('external', 'sites');
else
- OC_Appconfig::setValue('external', 'sites', json_encode($sites));
+ OCP\Config::setAppValue('external', 'sites', json_encode($sites));
echo 'true';
?>
diff --git a/apps/external/lib/external.php b/apps/external/lib/external.php
index 9dd32321135..9fff5d5569a 100644..100755
--- a/apps/external/lib/external.php
+++ b/apps/external/lib/external.php
@@ -24,7 +24,7 @@
class OC_External {
public static function getSites() {
- if (($sites = json_decode(OC_Appconfig::getValue("external", "sites", ''))) != NULL) {
+ if (($sites = json_decode(OCP\Config::getAppValue("external", "sites", ''))) != NULL) {
return $sites;
}