mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
[ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
This commit is contained in:
@@ -679,13 +679,10 @@ class acp_main
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We define the variable so we avoid redundancies
|
|
||||||
$config_ref = $phpbb_root_path . 'config.' . $phpEx;
|
$config_ref = $phpbb_root_path . 'config.' . $phpEx;
|
||||||
|
|
||||||
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref))
|
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref))
|
||||||
{
|
{
|
||||||
// World-Writable? (000x)
|
$template->assign_var('S_WRITABLE_CONFIG', (bool) $phpbb_filesystem->is_writable($config_ref));
|
||||||
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($config_ref) & 0x0002));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->php_ini = $phpbb_container->get('php_ini');
|
$this->php_ini = $phpbb_container->get('php_ini');
|
||||||
|
Reference in New Issue
Block a user