]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also set the app version when updating from app store
authorRobin Appelman <icewind@owncloud.com>
Fri, 25 Jul 2014 11:38:44 +0000 (13:38 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 4 Aug 2014 11:41:05 +0000 (13:41 +0200)
lib/private/app.php
lib/private/updater.php

index b61adc3fe3fc3241830cc1d82476d264d2b94804..f48209aae856a021a45883dbab67121012ad3bc0 100644 (file)
@@ -1167,6 +1167,9 @@ class OC_App {
 
                self::setAppTypes($appId);
 
+               $version = \OC_App::getAppVersion($appId);
+               \OC_Appconfig::setValue($appId, 'installed_version', $version);
+
                return true;
        }
 
index 029664ce9b64b28a12f2445218a1d0747cfb87d8..d0ca4a5349f382d8d76154ef8ad405409defea63 100644 (file)
@@ -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));
                        }
                }