mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/12160] Use phpbb_check_installation_exists() in the other modules.
PHPBB3-12160
This commit is contained in:
parent
fc33a0c176
commit
249b9dcdb5
2 changed files with 3 additions and 17 deletions
|
@ -18,14 +18,9 @@ if (!defined('IN_INSTALL'))
|
|||
if (!empty($setmodules))
|
||||
{
|
||||
// If phpBB is already installed we do not include this module
|
||||
if (@file_exists($phpbb_root_path . 'config.' . $phpEx) && !file_exists($phpbb_root_path . 'cache/install_lock'))
|
||||
if (phpbb_check_installation_exists($phpbb_root_path, $phpEx) && !file_exists($phpbb_root_path . 'cache/install_lock'))
|
||||
{
|
||||
include_once($phpbb_root_path . 'config.' . $phpEx);
|
||||
|
||||
if (defined('PHPBB_INSTALLED'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
$module[] = array(
|
||||
|
|
|
@ -19,16 +19,7 @@ if (!defined('IN_INSTALL'))
|
|||
if (!empty($setmodules))
|
||||
{
|
||||
// If phpBB is not installed we do not include this module
|
||||
if (@file_exists($phpbb_root_path . 'config.' . $phpEx) && !@file_exists($phpbb_root_path . 'cache/install_lock'))
|
||||
{
|
||||
include_once($phpbb_root_path . 'config.' . $phpEx);
|
||||
|
||||
if (!defined('PHPBB_INSTALLED'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
if (!phpbb_check_installation_exists($phpbb_root_path, $phpEx) || file_exists($phpbb_root_path . 'cache/install_lock'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue