aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/install_install.php')
-rwxr-xr-xphpBB/install/install_install.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 5244e656c9..5b753d12ca 100755
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -919,7 +919,7 @@ class install_install extends module
// Assume it will work ... if nothing goes wrong below
$written = true;
- if (!($fp = @fopen($phpbb_root_path . 'config.'.$phpEx, 'w')))
+ if (!($fp = @fopen($phpbb_root_path . 'config.' . $phpEx, 'w')))
{
// Something went wrong ... so let's try another method
$written = false;
@@ -932,6 +932,11 @@ class install_install extends module
}
@fclose($fp);
+
+ if ($written)
+ {
+ @chmod($phpbb_root_path . 'config.' . $phpEx, 0644);
+ }
}
if (isset($_POST['dldone']))