From f9fb38c6496987a8f3161b8dae6c2352ff2a7656 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Tue, 18 Jan 2022 23:13:52 +0100 Subject: [PATCH] Redirect to install page when configuration doesn't exist. --- system/core/Common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system/core/Common.php b/system/core/Common.php index ed96de0c..03f62c09 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -255,8 +255,9 @@ if ( ! function_exists('get_config')) } elseif ( ! $found) { - set_status_header(503); - echo 'The configuration file does not exist.'; + // set_status_header(301); + header('Location: install/'); + // echo 'The configuration file does not exist.'; exit(3); // EXIT_CONFIG }