From 61621ee1d048802249602cb91fad7df437ad16de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 22 Apr 2024 15:14:19 +0200 Subject: [PATCH] fix: Revert to OC_App in places where we need all apps even disabled ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/Command/App/GetPath.php | 2 +- core/Command/App/Update.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Command/App/GetPath.php b/core/Command/App/GetPath.php index 844e14ffdde..d5433253dd9 100644 --- a/core/Command/App/GetPath.php +++ b/core/Command/App/GetPath.php @@ -80,7 +80,7 @@ class GetPath extends Base { */ public function completeArgumentValues($argumentName, CompletionContext $context): array { if ($argumentName === 'app') { - return $this->appManager->getInstalledApps(); + return \OC_App::getAllApps(); } return []; } diff --git a/core/Command/App/Update.php b/core/Command/App/Update.php index 6047ac6b843..c2e24bf94b7 100644 --- a/core/Command/App/Update.php +++ b/core/Command/App/Update.php @@ -91,7 +91,7 @@ class Update extends Command { return 1; } } elseif ($input->getOption('all') || $input->getOption('showonly')) { - $apps = $this->manager->getInstalledApps(); + $apps = \OC_App::getAllApps(); } else { $output->writeln("Please specify an app to update or \"--all\" to update all updatable apps\""); return 1;