summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-03 14:16:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-03 18:00:16 +0200
commit1385b1ec487d1ce97ca520247bc32e35b23d837b (patch)
tree55fb9e10a6c0569c3f53a2b46649a17dd65281b3 /lib/private/app.php
parentd3ac73c0c9419750c65d3ccb8f0b0c25edacf34f (diff)
downloadnextcloud-server-1385b1ec487d1ce97ca520247bc32e35b23d837b.tar.gz
nextcloud-server-1385b1ec487d1ce97ca520247bc32e35b23d837b.zip
Remove OC_Appconfig
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 8062debef5f..1e49fdc6010 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -168,7 +168,7 @@ class OC_App {
private static function getAppTypes($app) {
//load the cache
if (count(self::$appTypes) == 0) {
- self::$appTypes = OC_Appconfig::getValues(false, 'types');
+ self::$appTypes = \OC::$server->getAppConfig()->getValues(false, 'types');
}
if (isset(self::$appTypes[$app])) {
@@ -190,7 +190,7 @@ class OC_App {
$appTypes = '';
}
- OC_Appconfig::setValue($app, 'types', $appTypes);
+ \OC::$server->getAppConfig()->setValue($app, 'types', $appTypes);
}
/**
@@ -821,7 +821,7 @@ class OC_App {
continue;
}
- $enabled = OC_Appconfig::getValue($app, 'enabled', 'no');
+ $enabled = \OC::$server->getAppConfig()->getValue($app, 'enabled', 'no');
$info['groups'] = null;
if ($enabled === 'yes') {
$active = true;
@@ -1173,9 +1173,9 @@ class OC_App {
//set remote/public handlers
$appData = self::getAppInfo($appId);
if (array_key_exists('ocsid', $appData)) {
- OC_Appconfig::setValue($appId, 'ocsid', $appData['ocsid']);
- } elseif(OC_Appconfig::getValue($appId, 'ocsid', null) !== null) {
- OC_Appconfig::deleteKey($appId, 'ocsid');
+ \OC::$server->getAppConfig()->setValue($appId, 'ocsid', $appData['ocsid']);
+ } elseif(\OC::$server->getAppConfig()->getValue($appId, 'ocsid', null) !== null) {
+ \OC::$server->getAppConfig()->deleteKey($appId, 'ocsid');
}
foreach ($appData['remote'] as $name => $path) {
OCP\CONFIG::setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
@@ -1187,7 +1187,7 @@ class OC_App {
self::setAppTypes($appId);
$version = \OC_App::getAppVersion($appId);
- \OC_Appconfig::setValue($appId, 'installed_version', $version);
+ \OC::$server->getAppConfig()->setValue($appId, 'installed_version', $version);
return true;
}