[ticket/12636] Rename log.session_errors to session.log_errors

PHPBB3-12636
This commit is contained in:
rubencm 2018-09-13 14:53:01 +00:00
parent ade145dc56
commit 03ea042d57
5 changed files with 8 additions and 8 deletions

View file

@ -18,5 +18,5 @@ core:
composer_debug: true composer_debug: true
composer_verbose: true composer_verbose: true
log: session:
session_errors: true log_errors: true

View file

@ -54,10 +54,10 @@ class container_configuration implements ConfigurationInterface
->booleanNode('composer_verbose')->defaultValue(false)->end() ->booleanNode('composer_verbose')->defaultValue(false)->end()
->end() ->end()
->end() ->end()
->arrayNode('log') ->arrayNode('session')
->addDefaultsIfNotSet() ->addDefaultsIfNotSet()
->children() ->children()
->booleanNode('session_errors')->defaultValue(false)->end() ->booleanNode('log_errors')->defaultValue(false)->end()
->end() ->end()
->end() ->end()
->end() ->end()

View file

@ -112,9 +112,9 @@ class core extends Extension
} }
// Set the log options // Set the log options
foreach ($config['log'] as $name => $value) foreach ($config['session'] as $name => $value)
{ {
$container->setParameter('log.' . $name, $value); $container->setParameter('session.' . $name, $value);
} }
} }

View file

@ -481,7 +481,7 @@ class session
else else
{ {
// Added logging temporarily to help debug bugs... // Added logging temporarily to help debug bugs...
if ($phpbb_container->getParameter('log.session_errors') && $this->data['user_id'] != ANONYMOUS) if ($phpbb_container->getParameter('session.log_errors') && $this->data['user_id'] != ANONYMOUS)
{ {
if ($referer_valid) if ($referer_valid)
{ {

View file

@ -21,7 +21,7 @@ class phpbb_mock_container_builder implements ContainerInterface
public function __construct() public function __construct()
{ {
$this->setParameter('debug.load_time', false); $this->setParameter('debug.load_time', false);
$this->setParameter('log.session_errors', false); $this->setParameter('session.log_errors', false);
} }
/** /**