mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-20 07:42:09 +02:00
[ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
This commit is contained in:
parent
f711133580
commit
146d72468f
@ -681,7 +681,7 @@ class acp_main
|
||||
|
||||
$config_ref = $phpbb_root_path . 'config.' . $phpEx;
|
||||
|
||||
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($phpbb_root_path . 'config.' . $phpEx)
|
||||
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref)
|
||||
&& (function_exists('is_writable') ? is_writable($config_ref) : $phpbb_filesystem->is_writable($config_ref))
|
||||
)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user