diff options
| author | Ruslan Uzdenov <rxu@mail.ru> | 2009-06-22 16:16:04 +0000 |
|---|---|---|
| committer | Ruslan Uzdenov <rxu@mail.ru> | 2009-06-22 16:16:04 +0000 |
| commit | b1584a8d5c709c4c909826e23286ca6aa438cf41 (patch) | |
| tree | f6d58780691be41a40b6e353052ba12d677a6c84 /phpBB/includes | |
| parent | bfcf6a1de5181a0b26b247f8cb9e181b8c83ff90 (diff) | |
| download | forums-b1584a8d5c709c4c909826e23286ca6aa438cf41.tar forums-b1584a8d5c709c4c909826e23286ca6aa438cf41.tar.gz forums-b1584a8d5c709c4c909826e23286ca6aa438cf41.tar.bz2 forums-b1584a8d5c709c4c909826e23286ca6aa438cf41.tar.xz forums-b1584a8d5c709c4c909826e23286ca6aa438cf41.zip | |
Fix bug #46965 - File named install in php directory
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9654 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/acp/acp_main.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/session.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index 365290e909..5d6bd40681 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -499,7 +499,7 @@ class acp_main } // Warn if install is still present - if (file_exists($phpbb_root_path . 'install')) + if (file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install')) { $template->assign_var('S_REMOVE_INSTALL', true); } diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index f74a7c5acc..509e11e524 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -1756,7 +1756,7 @@ class user extends session // Disable board if the install/ directory is still present // For the brave development army we do not care about this, else we need to comment out this everytime we develop locally - if (!defined('DEBUG_EXTRA') && !defined('ADMIN_START') && !defined('IN_INSTALL') && !defined('IN_LOGIN') && file_exists($phpbb_root_path . 'install')) + if (!defined('DEBUG_EXTRA') && !defined('ADMIN_START') && !defined('IN_INSTALL') && !defined('IN_LOGIN') && file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install')) { // Adjust the message slightly according to the permissions if ($auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_')) |
