summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/app.php3
-rw-r--r--lib/private/updater.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index b61adc3fe3f..f48209aae85 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -1167,6 +1167,9 @@ class OC_App {
self::setAppTypes($appId);
+ $version = \OC_App::getAppVersion($appId);
+ \OC_Appconfig::setValue($appId, 'installed_version', $version);
+
return true;
}
diff --git a/lib/private/updater.php b/lib/private/updater.php
index 029664ce9b6..d0ca4a5349f 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -267,8 +267,6 @@ class Updater extends BasicEmitter {
foreach ($apps as $appId) {
if (\OC_App::shouldUpgrade($appId)) {
\OC_App::updateApp($appId);
- $version = \OC_App::getAppVersion($appId);
- \OC_Appconfig::setValue($appId, 'installed_version', $version);
$this->emit('\OC\Updater', 'appUpgrade', array($appId, $version));
}
}