diff options
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)) { |