summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-09 14:49:40 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-05 13:02:16 +0200
commit7a3d83d63038e5db0af790b827b73ec7335a6961 (patch)
tree31efb6f5055cdf81a30e939b83ca1a8780dcb978 /lib
parent6a0da09734309adb644268e8946201634eaf1cf3 (diff)
downloadnextcloud-server-7a3d83d63038e5db0af790b827b73ec7335a6961.tar.gz
nextcloud-server-7a3d83d63038e5db0af790b827b73ec7335a6961.zip
Register autoloading before running migrations
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Installer.php3
-rw-r--r--lib/private/legacy/app.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 87cb262c966..60b0336fb5a 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -533,6 +533,8 @@ class Installer {
public static function installShippedApp($app) {
//install the database
$appPath = OC_App::getAppPath($app);
+ \OC_App::registerAutoloading($app, $appPath);
+
if(is_file("$appPath/appinfo/database.xml")) {
try {
OC_DB::createDbFromStructure("$appPath/appinfo/database.xml");
@@ -549,7 +551,6 @@ class Installer {
}
//run appinfo/install.php
- \OC_App::registerAutoloading($app, $appPath);
self::includeAppScript("$appPath/appinfo/install.php");
$info = OC_App::getAppInfo($app);
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 3ca05d85c22..463e13da915 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -1042,6 +1042,8 @@ class OC_App {
if($appPath === false) {
return false;
}
+ self::registerAutoloading($appId, $appPath);
+
$appData = self::getAppInfo($appId);
self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']);
@@ -1061,7 +1063,6 @@ class OC_App {
self::loadApp($appId);
include $appPath . '/appinfo/update.php';
}
- self::registerAutoloading($appId, $appPath);
self::setupBackgroundJobs($appData['background-jobs']);
if(isset($appData['settings']) && is_array($appData['settings'])) {
\OC::$server->getSettingsManager()->setupSettings($appData['settings']);