summaryrefslogtreecommitdiffstats
path: root/lib/private/installer.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r--lib/private/installer.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 021e496392f..fa9fc6704df 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -538,17 +538,20 @@ class OC_Installer{
if (is_null($info)) {
return false;
}
- \OC::$server->getAppConfig()->setValue($app, 'installed_version', OC_App::getAppVersion($app));
+
+ $config = \OC::$server->getConfig();
+
+ $config->setAppValue($app, 'installed_version', OC_App::getAppVersion($app));
if (array_key_exists('ocsid', $info)) {
- \OC::$server->getAppConfig()->setValue($app, 'ocsid', $info['ocsid']);
+ $config->setAppValue($app, 'ocsid', $info['ocsid']);
}
//set remote/public handlers
foreach($info['remote'] as $name=>$path) {
- OCP\CONFIG::setAppValue('core', 'remote_'.$name, $app.'/'.$path);
+ $config->setAppValue('core', 'remote_'.$name, $app.'/'.$path);
}
foreach($info['public'] as $name=>$path) {
- OCP\CONFIG::setAppValue('core', 'public_'.$name, $app.'/'.$path);
+ $config->setAppValue('core', 'public_'.$name, $app.'/'.$path);
}
OC_App::setAppTypes($info['id']);
@@ -563,7 +566,7 @@ class OC_Installer{
*/
public static function checkCode($folder) {
// is the code checker enabled?
- if(!OC_Config::getValue('appcodechecker', false)) {
+ if(!\OC::$server->getConfig()->getSystemValue('appcodechecker', false)) {
return true;
}