1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

Merge branch 'ticket/igorw/9830' into develop-olympus

* ticket/igorw/9830:
  [ticket/9830] Redirect to install directly when config.php does not exist.
This commit is contained in:
Andreas Fischer 2010-10-15 15:33:27 +02:00
commit 7ac8838b69

View File

@ -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("<p>The config.$phpEx file could not be found.</p><p><a href=\"{$phpbb_root_path}install/index.$phpEx\">Click here to install phpBB</a></p>");
require($phpbb_root_path . 'config.' . $phpEx);
}
require($phpbb_root_path . 'config.' . $phpEx);
if (!defined('PHPBB_INSTALLED'))
{
// Redirect the user to the installer