diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-17 12:08:31 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-20 14:44:44 +0200 |
commit | d9907b6fa3c1523ee19bc6c3d888a0d71521819e (patch) | |
tree | 10554e49576d0dac186bc558842545b90e7a9388 /core | |
parent | 6af0e76a03b59e82a30e80ea726b274e431a9b61 (diff) | |
download | nextcloud-server-d9907b6fa3c1523ee19bc6c3d888a0d71521819e.tar.gz nextcloud-server-d9907b6fa3c1523ee19bc6c3d888a0d71521819e.zip |
move some deprecated usage of OC_Config and OC_AppConfig to \OC::server
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/appconfig.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php index 05b7572c6d7..7d73185dae6 100644 --- a/core/ajax/appconfig.php +++ b/core/ajax/appconfig.php @@ -24,27 +24,28 @@ if($app === 'core' && isset($_POST['key']) &&(substr($_POST['key'],0,7) === 'rem } $result=false; +$appConfig = \OC::$server->getAppConfig(); switch($action) { case 'getValue': - $result=OC_Appconfig::getValue($app, $_GET['key'], $_GET['defaultValue']); + $result=$appConfig->getValue($app, $_GET['key'], $_GET['defaultValue']); break; case 'setValue': - $result=OC_Appconfig::setValue($app, $_POST['key'], $_POST['value']); + $result=$appConfig->setValue($app, $_POST['key'], $_POST['value']); break; case 'getApps': - $result=OC_Appconfig::getApps(); + $result=$appConfig->getApps(); break; case 'getKeys': - $result=OC_Appconfig::getKeys($app); + $result=$appConfig->getKeys($app); break; case 'hasKey': - $result=OC_Appconfig::hasKey($app, $_GET['key']); + $result=$appConfig->hasKey($app, $_GET['key']); break; case 'deleteKey': - $result=OC_Appconfig::deleteKey($app, $_POST['key']); + $result=$appConfig->deleteKey($app, $_POST['key']); break; case 'deleteApp': - $result=OC_Appconfig::deleteApp($app); + $result=$appConfig->deleteApp($app); break; } OC_JSON::success(array('data'=>$result)); |