diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-19 13:33:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-08-19 13:33:38 +0200 |
commit | fdfc5c67f8e90ac0a439579e9a64d1a643686bd3 (patch) | |
tree | 49c30ace401ab4eab17be482ec6cb3a1cbf85399 /lib/private/util.php | |
parent | fdb203ff1eedbad298984ca0670985cea52f619a (diff) | |
parent | ab590ce9a06cf8803eeef9555c66b20bea58041d (diff) | |
download | nextcloud-server-fdfc5c67f8e90ac0a439579e9a64d1a643686bd3.tar.gz nextcloud-server-fdfc5c67f8e90ac0a439579e9a64d1a643686bd3.zip |
Merge pull request #9866 from owncloud/app-upgrade
Don't do app upgrades in the background
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-x | lib/private/util.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 1485377828d..4959cb5a786 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1465,7 +1465,18 @@ class OC_Util { if (OC_Config::getValue('installed', false)) { $installedVersion = OC_Config::getValue('version', '0.0.0'); $currentVersion = implode('.', OC_Util::getVersion()); - return version_compare($currentVersion, $installedVersion, '>'); + if (version_compare($currentVersion, $installedVersion, '>')) { + return true; + } + + // also check for upgrades for apps + $apps = \OC_App::getEnabledApps(); + foreach ($apps as $app) { + if (\OC_App::shouldUpgrade($app)) { + return true; + } + } + return false; } else { return false; } |