summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-20 14:24:22 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-20 14:24:22 +0200
commitf1df6cd4ff67fe9ad27e09dd5071f8ed2566fe36 (patch)
tree7302b923c646f8bf89fe649f4c8ec4527d7c39ca
parentff8e63c991ba9d7a956ba637de6e8e86eb4bdfec (diff)
parentd4cc4019fda3434b092512ccd4fc01ebd3b8bcb1 (diff)
downloadnextcloud-server-f1df6cd4ff67fe9ad27e09dd5071f8ed2566fe36.tar.gz
nextcloud-server-f1df6cd4ff67fe9ad27e09dd5071f8ed2566fe36.zip
Merge pull request #17736 from owncloud/backport-allow-update-of-disabled-apps
[stable8.1] Allow upgrade of not enabled apps
-rw-r--r--lib/private/app.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 5ce64f2ce32..ab3430bd51a 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -1168,9 +1168,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';