]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/AutomaticInstallation.php
Merge pull request #5862 from nupplaphil/rename_App_Methods
[friendica.git] / src / Core / Console / AutomaticInstallation.php
index 9b6945ecd4204019ecc1e75d9afe1236bc955680..9cdb8a0ae233187c34c6dbed173e4ba681aa6977 100644 (file)
@@ -84,8 +84,8 @@ HELP;
                        if ($config_file != 'config' . DIRECTORY_SEPARATOR . 'local.ini.php') {
                                // Copy config file
                                $this->out("Copying config file...\n");
-                               if (!copy($a->basepath . DIRECTORY_SEPARATOR . $config_file, $a->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php')) {
-                                       throw new RuntimeException("ERROR: Saving config file failed. Please copy '$config_file' to '$a->basepath" . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "local.ini.php' manually.\n");
+                               if (!copy($a->getBasePath() . DIRECTORY_SEPARATOR . $config_file, $a->getBasePath() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php')) {
+                                       throw new RuntimeException("ERROR: Saving config file failed. Please copy '$config_file' to '" . $a->getBasePath() . "'"  . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "local.ini.php' manually.\n");
                                }
                        }