aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-09-16 21:57:25 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-09-16 22:00:17 +0200
commit6bfae1cd1a575ed61222a7cf2cb800f4e051a88c (patch)
treee0004cc8a88646ad713c4f932a755cc6765d0067
parentd874c3237498feb7729b23ee17248981ee3faadc (diff)
downloadforums-6bfae1cd1a575ed61222a7cf2cb800f4e051a88c.tar
forums-6bfae1cd1a575ed61222a7cf2cb800f4e051a88c.tar.gz
forums-6bfae1cd1a575ed61222a7cf2cb800f4e051a88c.tar.bz2
forums-6bfae1cd1a575ed61222a7cf2cb800f4e051a88c.tar.xz
forums-6bfae1cd1a575ed61222a7cf2cb800f4e051a88c.zip
[ticket/9830] Redirect to install directly when config.php does not exist.
PHPBB3-9830
-rw-r--r--phpBB/common.php6
1 files 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("<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