X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FInstall.php;h=ba3a97ea6c376fb64f36a61bda128bd3bfb719e3;hb=804cfa03200456116db0c96b7f2ae6e3b7bdbfd8;hp=e8f014618d652c51e193db3b9c16a64a3da61c1e;hpb=dc4b6ba55996ff2dee23f329502ff41a9d651962;p=friendica.git diff --git a/src/Core/Install.php b/src/Core/Install.php index e8f014618d..ba3a97ea6c 100644 --- a/src/Core/Install.php +++ b/src/Core/Install.php @@ -84,11 +84,12 @@ class Install extends BaseObject '$adminmail' => $adminmail, ]); - $result = file_put_contents('config/local.ini.php', $txt); + $app = self::getApp(); + + $result = file_put_contents($app->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php', $txt); if (!$result) { - self::getApp()->data['txt'] = $txt; + $app->data['txt'] = $txt; } - } /**