|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|