mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 04:42:04 +02:00
[ticket/12636] Add log.session_errors
PHPBB3-12636
This commit is contained in:
parent
4f402465bf
commit
303b823847
@ -15,3 +15,6 @@ core:
|
||||
debug: true
|
||||
auto_reload: true
|
||||
enable_debug_extension: true
|
||||
|
||||
log:
|
||||
session_errors: true
|
||||
|
@ -49,6 +49,12 @@ class container_configuration implements ConfigurationInterface
|
||||
->booleanNode('enable_debug_extension')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->arrayNode('log')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->booleanNode('session_errors')->defaultValue(false)->end()
|
||||
->end()
|
||||
->end()
|
||||
->end()
|
||||
;
|
||||
return $treeBuilder;
|
||||
|
@ -99,6 +99,12 @@ class core extends Extension
|
||||
{
|
||||
$container->setParameter('debug.' . $name, $value);
|
||||
}
|
||||
|
||||
// Set the log options
|
||||
foreach ($config['log'] as $name => $value)
|
||||
{
|
||||
$container->setParameter('log.' . $name, $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -479,7 +479,7 @@ class session
|
||||
else
|
||||
{
|
||||
// Added logging temporarily to help debug bugs...
|
||||
if (defined('DEBUG') && $this->data['user_id'] != ANONYMOUS)
|
||||
if ($phpbb_container->getParameter('log.session_errors') && $this->data['user_id'] != ANONYMOUS)
|
||||
{
|
||||
if ($referer_valid)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user