mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 12:52:08 +02:00
[ticket/12636] Rename log.session_errors to session.log_errors
PHPBB3-12636
This commit is contained in:
parent
c20fed43cd
commit
a702142a34
@ -16,5 +16,5 @@ core:
|
||||
auto_reload: true
|
||||
enable_debug_extension: true
|
||||
|
||||
log:
|
||||
session_errors: true
|
||||
session:
|
||||
log_errors: true
|
||||
|
@ -49,10 +49,10 @@ class container_configuration implements ConfigurationInterface
|
||||
->booleanNode('enable_debug_extension')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->arrayNode('log')
|
||||
->arrayNode('session')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->booleanNode('session_errors')->defaultValue(false)->end()
|
||||
->booleanNode('log_errors')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
|
@ -101,9 +101,9 @@ class core extends Extension
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -479,7 +479,7 @@ class session
|
||||
else
|
||||
{
|
||||
// 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)
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ class phpbb_mock_container_builder implements ContainerInterface
|
||||
public function __construct()
|
||||
{
|
||||
$this->setParameter('debug.load_time', false);
|
||||
$this->setParameter('log.session_errors', false);
|
||||
$this->setParameter('session.log_errors', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user