]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Install.php
Merge pull request #5815 from annando/ap2
[friendica.git] / src / Core / Install.php
index e8f014618d652c51e193db3b9c16a64a3da61c1e..ba3a97ea6c376fb64f36a61bda128bd3bfb719e3 100644 (file)
@@ -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;
                }
-
        }
 
        /**