From 118e0ddd0a3dcd7e08d695567c6caa2d79d4b606 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 20 Jul 2015 16:12:21 +0200 Subject: Remove TODO (join_path and reinstall) See https://github.com/FreshRSS/FreshRSS/issues/909 --- app/install.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'app/install.php') diff --git a/app/install.php b/app/install.php index 3312208c0..208bef0e9 100644 --- a/app/install.php +++ b/app/install.php @@ -9,9 +9,8 @@ session_name('FreshRSS'); session_set_cookie_params(0, dirname(empty($_SERVER['REQUEST_URI']) ? '/' : dirname($_SERVER['REQUEST_URI'])), null, false, true); session_start(); -// TODO: use join_path() instead -Minz_Configuration::register('default_system', DATA_PATH . '/config.default.php'); -Minz_Configuration::register('default_user', USERS_PATH . '/_/config.default.php'); +Minz_Configuration::register('default_system', join_path(DATA_PATH, 'config.default.php')); +Minz_Configuration::register('default_user', join_path(USERS_PATH, '_', 'config.default.php')); if (isset($_GET['step'])) { define('STEP',(int)$_GET['step']); @@ -81,24 +80,22 @@ function saveLanguage() { } function saveStep1() { - // TODO: rename reinstall in install - if (isset($_POST['freshrss-keep-reinstall']) && - $_POST['freshrss-keep-reinstall'] === '1') { + if (isset($_POST['freshrss-keep-install']) && + $_POST['freshrss-keep-install'] === '1') { // We want to keep our previous installation of FreshRSS // so we need to make next steps valid by setting $_SESSION vars // with values from the previous installation // First, we try to get previous configurations - // TODO: use join_path() instead Minz_Configuration::register('system', - DATA_PATH . '/config.php', - DATA_PATH . '/config.default.php'); + join_path(DATA_PATH, 'config.php'), + join_path(DATA_PATH, 'config.default.php')); $system_conf = Minz_Configuration::get('system'); $current_user = $system_conf->default_user; Minz_Configuration::register('user', - USERS_PATH . '/' . $current_user . '/config.php', - USERS_PATH . '/_/config.default.php'); + join_path(USERS_PATH, $current_user, 'config.php'), + join_path(USERS_PATH, '_', 'config.default.php')); $user_conf = Minz_Configuration::get('user'); // Then, we set $_SESSION vars @@ -611,7 +608,7 @@ function printStep1() {

- +
-- cgit v1.2.3