diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-24 13:53:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 13:53:17 +0200 |
commit | 3eaf23f29f67dbb6077121cc24beaddd8d587504 (patch) | |
tree | 738ba69ef08701f9917206dc101b967035fa17c2 /core | |
parent | 18601903052e389d7dbc25ff2603eb7091415ca0 (diff) | |
parent | f884e762bcf3e1737f1cdd5a4453ca0664087b61 (diff) | |
download | nextcloud-server-3eaf23f29f67dbb6077121cc24beaddd8d587504.tar.gz nextcloud-server-3eaf23f29f67dbb6077121cc24beaddd8d587504.zip |
Merge pull request #6920 from nextcloud/appmanager-usage
Use appmanager instead of OC_App for check for enabled app
Diffstat (limited to 'core')
-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); |