diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-06-16 11:41:44 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-16 11:41:44 +0200 |
commit | 829f6474ff4cd4e39647bcb5b68b5e5c0fb1b483 (patch) | |
tree | f2deb5f2143b8e8a0aad31c3b0a9ca61efaeb47d /lib | |
parent | 7d8b728066987bd312b3225eff6cff67ca6a610a (diff) | |
parent | 5ca6ec7ead2966a1cad1213d898a326a9e315550 (diff) | |
download | nextcloud-server-829f6474ff4cd4e39647bcb5b68b5e5c0fb1b483.tar.gz nextcloud-server-829f6474ff4cd4e39647bcb5b68b5e5c0fb1b483.zip |
Merge pull request #16856 from owncloud/issue-15851-fetch-updates-after-page-completion
Load the update information asyncroniously to fix the page load speed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index a4dd513a5d8..4814561baec 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -797,9 +797,11 @@ class OC_App { * List all apps, this is used in apps.php * * @param bool $onlyLocal + * @param bool $includeUpdateInfo Should we check whether there is an update + * in the app store? * @return array */ - public static function listAllApps($onlyLocal = false) { + public static function listAllApps($onlyLocal = false, $includeUpdateInfo = true) { $installedApps = OC_App::getAllApps(); //TODO which apps do we want to blacklist and how do we integrate @@ -841,7 +843,7 @@ class OC_App { $info['removable'] = true; } - $info['update'] = OC_Installer::isUpdateAvailable($app); + $info['update'] = ($includeUpdateInfo) ? OC_Installer::isUpdateAvailable($app) : null; $appIcon = self::getAppPath($app) . '/img/' . $app . '.svg'; if (file_exists($appIcon)) { |