1
0
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:
3D-I 2020-12-29 22:04:31 +01:00
parent b9b50a108b
commit 2c2ee90d58

View File

@ -681,7 +681,9 @@ class acp_main
if (!defined('PHPBB_DISABLE_CONFIG_CHECK'))
{
$template->assign_var('S_WRITABLE_CONFIG', (bool) $phpbb_filesystem->is_writable($phpbb_root_path . 'config.' . $phpEx));
$template->assign_var('S_WRITABLE_CONFIG',
(bool) $phpbb_filesystem->is_writable($phpbb_root_path . 'config.' . $phpEx) || (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002)
);
}
$this->php_ini = $phpbb_container->get('php_ini');