aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r--lib/private/Installer.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 6ab497b9dea..c4af480d4ca 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -560,12 +560,13 @@ class Installer {
if ($output instanceof IOutput) {
$output->debug('Installing ' . $app);
}
- //install the database
- $appPath = OC_App::getAppPath($app);
- \OC_App::registerAutoloading($app, $appPath);
+ $appManager = \OCP\Server::get(IAppManager::class);
$config = \OCP\Server::get(IConfig::class);
+ $appPath = $appManager->getAppPath($app);
+ \OC_App::registerAutoloading($app, $appPath);
+
$ms = new MigrationService($app, \OCP\Server::get(Connection::class));
if ($output instanceof IOutput) {
$ms->setOutput($output);