Make sure we don't query the AppManager before the installation started
Otherwise we end up with the database not being instantiated Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
9a73a1f063
commit
f23ed5e0ea
|
@ -723,8 +723,11 @@ class OC {
|
|||
self::registerAccountHooks();
|
||||
self::registerSettingsHooks();
|
||||
|
||||
$settings = new \OC\Settings\Application();
|
||||
$settings->register();
|
||||
// Make sure that the application class is not loaded before the database is setup
|
||||
if ($systemConfig->getValue("installed", false)) {
|
||||
$settings = new \OC\Settings\Application();
|
||||
$settings->register();
|
||||
}
|
||||
|
||||
//make sure temporary files are cleaned up
|
||||
$tmpManager = \OC::$server->getTempManager();
|
||||
|
|
Loading…
Reference in New Issue