Browse Source

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>
pull/8114/head
Julius Härtl 8 years ago
parent
commit
f23ed5e0ea
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 7
      lib/base.php

7
lib/base.php

@ -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…
Cancel
Save