aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xphpBB/install/index.php1
-rwxr-xr-xphpBB/install/install_install.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php
index 5fda7beba9..32728e0900 100755
--- a/phpBB/install/index.php
+++ b/phpBB/install/index.php
@@ -11,6 +11,7 @@
/**
*/
define('IN_PHPBB', true);
+define('IN_INSTALL', true);
// Error reporting level and runtime escaping
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 0d730a5273..7154eee9bc 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -701,7 +701,7 @@ class install_install extends module
$config_data .= '?' . '>'; // Done this to prevent highlighting editors getting confused!
// Attempt to write out the config file directly. If it works, this is the easiest way to do it ...
- if (filesize($phpbb_root_path . 'config.' . $phpEx) == 0 && is_writeable($phpbb_root_path . 'config.' . $phpEx))
+ if ((file_exists($phpbb_root_path . 'config.' . $phpEx) && is_writeable($phpbb_root_path . 'config.' . $phpEx)) || is_writable($phpbb_root_path))
{
// Assume it will work ... if nothing goes wrong below
$written = true;