[ticket/16641] Fix config.php validation in ACP - PHP 8

PHPBB3-16641
This commit is contained in:
3D-I 2020-11-28 05:38:38 +01:00
parent 4e8b104543
commit ea5028cf2a

View file

@ -682,7 +682,7 @@ class acp_main
// We define the variable so we avoid redundancies
$config_ref = $phpbb_root_path . 'config.' . $phpEx;
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref) && $phpbb_filesystem->is_writable($config_ref))
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref))
{
// World-Writable? (000x)
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($config_ref) & 0x0002));