From 6bfae1cd1a575ed61222a7cf2cb800f4e051a88c Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Thu, 16 Sep 2010 21:57:25 +0200 Subject: [PATCH] [ticket/9830] Redirect to install directly when config.php does not exist. PHPBB3-9830 --- phpBB/common.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpBB/common.php b/phpBB/common.php index 9b6913e95f..c8b2fb9609 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -123,13 +123,11 @@ if (defined('IN_CRON')) $phpbb_root_path = dirname(__FILE__) . DIRECTORY_SEPARATOR; } -if (!file_exists($phpbb_root_path . 'config.' . $phpEx)) +if (file_exists($phpbb_root_path . 'config.' . $phpEx)) { - die("

The config.$phpEx file could not be found.

Click here to install phpBB

"); + require($phpbb_root_path . 'config.' . $phpEx); } -require($phpbb_root_path . 'config.' . $phpEx); - if (!defined('PHPBB_INSTALLED')) { // Redirect the user to the installer