From e874bb85aeb78ce00d60a42617e3f2f30a1861eb Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 7 Sep 2014 03:51:10 +0200 Subject: [PATCH] Bugfix --- code/web/public_php/setup/install.php | 4 ++-- code/web/public_php/setup/upgrade.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/web/public_php/setup/install.php b/code/web/public_php/setup/install.php index 57f7938bb..cc9972f8d 100644 --- a/code/web/public_php/setup/install.php +++ b/code/web/public_php/setup/install.php @@ -152,11 +152,11 @@ include('header.php'); if ($continue) { $configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php"); - if (!$config) { + if (!$configUser) { printalert("danger", "Cannot read config_user.php"); $continue = false; } else { - if (file_put_contents("config_user.php", $config)) { + if (file_put_contents("config_user.php", $configUser)) { printalert("success", "Copied config_user.php"); } else { printalert("danger", "Cannot write to config.php"); diff --git a/code/web/public_php/setup/upgrade.php b/code/web/public_php/setup/upgrade.php index 9e5cf33a5..b29c04e2c 100644 --- a/code/web/public_php/setup/upgrade.php +++ b/code/web/public_php/setup/upgrade.php @@ -81,12 +81,12 @@ if (!isset($NEL_SETUP_VERSION_CONFIGURED)) { // Create config_user.php if it doesn't exist yet if ($continue && !file_exists("config_user.php")) { - $configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php"); - if (!$config) { + $configUser = file_get_contents($PRIVATE_PHP_PATH . "/setup/config/config_user.php"); + if (!$configUser) { printalert("danger", "Cannot read config_user.php"); $continue = false; } else { - if (file_put_contents("config_user.php", $config)) { + if (file_put_contents("config_user.php", $configUser)) { printalert("success", "Copied config_user.php"); } else { printalert("danger", "Cannot write to config.php");