diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:31:17 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:31:17 +0200 |
commit | f884e762bcf3e1737f1cdd5a4453ca0664087b61 (patch) | |
tree | b0f2ac05efef64c98aac9b21588cc32812cc7acc /core/Command/Maintenance/Repair.php | |
parent | db1096bcfdf2336ccf6aefb70dd902a63ed615db (diff) | |
download | nextcloud-server-f884e762bcf3e1737f1cdd5a4453ca0664087b61.tar.gz nextcloud-server-f884e762bcf3e1737f1cdd5a4453ca0664087b61.zip |
Use appmanager instead of OC_App for check for enabled app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Command/Maintenance/Repair.php')
-rw-r--r-- | core/Command/Maintenance/Repair.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php index 299554fe190..0d95b0ea3e2 100644 --- a/core/Command/Maintenance/Repair.php +++ b/core/Command/Maintenance/Repair.php @@ -78,9 +78,10 @@ class Repair extends Command { } } - $apps = \OC::$server->getAppManager()->getInstalledApps(); + $appManager = \OC::$server->getAppManager(); + $apps = $appManager->getInstalledApps(); foreach ($apps as $app) { - if (!\OC_App::isEnabled($app)) { + if (!$appManager->isEnabledForUser($app)) { continue; } $info = \OC_App::getAppInfo($app); |