From ff66600bc060dd2713b88b4af88e5a0a291710e0 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Wed, 2 May 2012 14:11:29 +0200 Subject: port appconfig --- apps/external/ajax/setsites.php | 2 +- apps/external/lib/external.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 apps/external/lib/external.php (limited to 'apps/external') 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 old mode 100644 new mode 100755 index 9dd32321135..9fff5d5569a --- 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; } -- cgit v1.2.3