Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-29 15:15:05 +0300
committerJulius Härtl <jus@bitgrid.net>2018-01-30 21:05:49 +0300
commitf23ed5e0eaaec63903e92e61f1124209c8a33155 (patch)
treefb648eb2b6785335ce711c3a88eacb08ec4dd9f3 /lib/base.php
parent9a73a1f0635b05ff94e23cf7ac3918b130aef348 (diff)
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>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 444c0df7e9e..f7dd3025b71 100644
--- a/lib/base.php
+++ b/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();