diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-10 12:01:54 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-06-10 12:11:05 +0200 |
commit | 580155abe716dd9fb385823819c473313c4e3dd1 (patch) | |
tree | 9fd49a97b5c0b64e0b37b5dbc6a95715fbf0d8d6 /lib/private | |
parent | 4d88302b3adba16e99899d31e4e04ae48aa067d8 (diff) | |
download | nextcloud-server-580155abe716dd9fb385823819c473313c4e3dd1.tar.gz nextcloud-server-580155abe716dd9fb385823819c473313c4e3dd1.zip |
Load the update information asyncroniously to fix the page load speed
Diffstat (limited to 'lib/private')
-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)) { |