From ccabdeef2da1fc2bd70bfeeaf7d8659f6e5f2b9d 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 d6a1fdb4..0df24f80 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -256,8 +256,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 }