diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-09 12:37:57 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-07-09 12:37:57 +0200 |
commit | d3b58d147fc33ec9e42ba9eee664bd03022fbbfd (patch) | |
tree | 18a7cce6d947389bff5f4a31cba0d442624a30cb | |
parent | b4f782b568560a8a0718abaa41ac800ea462b129 (diff) | |
download | nextcloud-server-d3b58d147fc33ec9e42ba9eee664bd03022fbbfd.tar.gz nextcloud-server-d3b58d147fc33ec9e42ba9eee664bd03022fbbfd.zip |
Allow upgrade of not enabled apps
-rw-r--r-- | lib/private/app.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 1e49fdc6010..7d75721e1fd 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -1162,9 +1162,7 @@ class OC_App { OC_DB::updateDbFromStructure(self::getAppPath($appId) . '/appinfo/database.xml'); } unset(self::$appVersion[$appId]); - if (!self::isEnabled($appId)) { - return false; - } + // run upgrade code if (file_exists(self::getAppPath($appId) . '/appinfo/update.php')) { self::loadApp($appId, false); include self::getAppPath($appId) . '/appinfo/update.php'; @@ -1173,15 +1171,15 @@ class OC_App { //set remote/public handlers $appData = self::getAppInfo($appId); if (array_key_exists('ocsid', $appData)) { - \OC::$server->getAppConfig()->setValue($appId, 'ocsid', $appData['ocsid']); - } elseif(\OC::$server->getAppConfig()->getValue($appId, 'ocsid', null) !== null) { - \OC::$server->getAppConfig()->deleteKey($appId, 'ocsid'); + \OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']); + } elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) { + \OC::$server->getConfig()->deleteAppValue($appId, 'ocsid'); } foreach ($appData['remote'] as $name => $path) { - OCP\CONFIG::setAppValue('core', 'remote_' . $name, $appId . '/' . $path); + \OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path); } foreach ($appData['public'] as $name => $path) { - OCP\CONFIG::setAppValue('core', 'public_' . $name, $appId . '/' . $path); + \OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path); } self::setAppTypes($appId); |