]> git.mxchange.org Git - friendica.git/blobdiff - bin/daemon.php
Code standards
[friendica.git] / bin / daemon.php
index 047bf71be77b4ac31dbea889098e5dd52dce8b5b..298cfa2534ad1221ddbf1cf7561de89830b354e2 100755 (executable)
@@ -144,7 +144,9 @@ if (!$foreground) {
        file_put_contents($pidfile, $pid);
 
        // We lose the database connection upon forking
-       Factory\DBFactory::init($a->getConfigCache(), $a->getProfiler(), $_SERVER);
+       /// @todo refactoring during https://github.com/friendica/friendica/issues/6720
+       $basePath = \Friendica\Util\BasePath::create(dirname(__DIR__), $_SERVER);
+       Factory\DBFactory::init($basePath, $a->getConfigCache(), $a->getProfiler(), $_SERVER);
 }
 
 Config::set('system', 'worker_daemon_mode', true);