diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-02-10 11:35:38 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-02-13 10:19:20 +0100 |
commit | f758f565d4da004ebef97350365a066eee5267fe (patch) | |
tree | 5dcea3814c85d70a76cd9ee0575a4b41162d79d3 /core | |
parent | a3685551f7188e7d2d0c7532b821ec2c3bd40583 (diff) | |
download | nextcloud-server-fix/clarify-app-manager-methods.tar.gz nextcloud-server-fix/clarify-app-manager-methods.zip |
fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methods
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/App/Remove.php | 2 | ||||
-rw-r--r-- | core/Command/Maintenance/Repair.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/App/Remove.php b/core/Command/App/Remove.php index fb3ca3f733d..d43bfa96ccc 100644 --- a/core/Command/App/Remove.php +++ b/core/Command/App/Remove.php @@ -117,7 +117,7 @@ class Remove extends Command implements CompletionAwareInterface { */ public function completeArgumentValues($argumentName, CompletionContext $context): array { if ($argumentName === 'app-id') { - return $this->manager->getInstalledApps(); + return $this->manager->getEnabledApps(); } return []; } diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php index 09d75cec45c..35f4ef7a8d5 100644 --- a/core/Command/Maintenance/Repair.php +++ b/core/Command/Maintenance/Repair.php @@ -61,7 +61,7 @@ class Repair extends Command { $this->repair->addStep($step); } - $apps = $this->appManager->getInstalledApps(); + $apps = $this->appManager->getEnabledApps(); foreach ($apps as $app) { if (!$this->appManager->isEnabledForUser($app)) { continue; |