mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
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
1 changed files with 5 additions and 2 deletions
|
|
@ -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 a new issue