diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-01 16:09:50 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-01 16:09:50 +0000 |
| commit | 6ca11b2d2b7a9e6420eec3b21e1531c1586c15c2 (patch) | |
| tree | 9a369d5bda1449ab2218979181bcf219096c52ac /phpBB/install/install_install.php | |
| parent | 817a82a1afb86a1761c5c6a810ed9b8f599c147a (diff) | |
| download | forums-6ca11b2d2b7a9e6420eec3b21e1531c1586c15c2.tar forums-6ca11b2d2b7a9e6420eec3b21e1531c1586c15c2.tar.gz forums-6ca11b2d2b7a9e6420eec3b21e1531c1586c15c2.tar.bz2 forums-6ca11b2d2b7a9e6420eec3b21e1531c1586c15c2.tar.xz forums-6ca11b2d2b7a9e6420eec3b21e1531c1586c15c2.zip | |
some fixes... most importantly the ability to update the board with the automatic files while having fsockopen disabled (instead, the update file information will be used, which may be inaccurate if the admin did a mistake).
git-svn-id: file:///svn/phpbb/trunk@7818 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/install_install.php')
| -rwxr-xr-x | phpBB/install/install_install.php | 7 |
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'])) |
