mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
This commit is contained in:
parent
557160f158
commit
b9b50a108b
1 changed files with 8 additions and 8 deletions
|
@ -679,17 +679,17 @@ class acp_main
|
|||
}
|
||||
}
|
||||
|
||||
$config_ref = $phpbb_root_path . 'config.' . $phpEx;
|
||||
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($config_ref))
|
||||
if (!defined('PHPBB_DISABLE_CONFIG_CHECK'))
|
||||
{
|
||||
$template->assign_var('S_WRITABLE_CONFIG', (bool) $phpbb_filesystem->is_writable($config_ref));
|
||||
$template->assign_var('S_WRITABLE_CONFIG', (bool) $phpbb_filesystem->is_writable($phpbb_root_path . 'config.' . $phpEx));
|
||||
}
|
||||
|
||||
$this->php_ini = $phpbb_container->get('php_ini');
|
||||
$func_overload = $this->php_ini->getNumeric('mbstring.func_overload');
|
||||
$encoding_translation = $this->php_ini->getString('mbstring.encoding_translation');
|
||||
$http_input = $this->php_ini->getString('mbstring.http_input');
|
||||
$http_output = $this->php_ini->getString('mbstring.http_output');
|
||||
$this->php_ini = $phpbb_container->get('php_ini');
|
||||
$func_overload = $this->php_ini->getNumeric('mbstring.func_overload');
|
||||
$encoding_translation = $this->php_ini->getString('mbstring.encoding_translation');
|
||||
$http_input = $this->php_ini->getString('mbstring.http_input');
|
||||
$http_output = $this->php_ini->getString('mbstring.http_output');
|
||||
|
||||
if (extension_loaded('mbstring'))
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
|
|
Loading…
Add table
Reference in a new issue