mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
This commit is contained in:
parent
0bfb746991
commit
2d548a026f
1 changed files with 2 additions and 3 deletions
|
@ -681,9 +681,8 @@ class acp_main
|
||||||
|
|
||||||
if (!defined('PHPBB_DISABLE_CONFIG_CHECK'))
|
if (!defined('PHPBB_DISABLE_CONFIG_CHECK'))
|
||||||
{
|
{
|
||||||
$phpbb_config_file = $phpbb_root_path . 'config.' . $phpEx;
|
// World-Writable? (000x)
|
||||||
|
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002));
|
||||||
$template->assign_var('S_WRITABLE_CONFIG', (bool) $phpbb_filesystem->is_writable($phpbb_config_file) || (@fileperms($phpbb_config_file) & 0x0002));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->php_ini = $phpbb_container->get('php_ini');
|
$this->php_ini = $phpbb_container->get('php_ini');
|
||||||
|
|
Loading…
Add table
Reference in a new issue