mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Merge remote-tracking branch 'prototech/ticket/12160' into develop
* prototech/ticket/12160: [ticket/12160] Use phpbb_check_installation_exists() in the other modules. [ticket/12160] Move phpbb_check_installation_exists() to functions_install.php [ticket/12160] Check if phpBB is installed before creating phpBB container. [ticket/12160] Add function to check if phpBB is installed.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user