aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/session.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-08-11 12:23:21 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-08-11 12:23:21 +0200
commitf09db1a7b4d9172035a461e90ce6fa3d7b544df3 (patch)
tree77aa906455cf020db4e2bec413c56caaec45b8c6 /phpBB/phpbb/session.php
parent7b35bd3e7cb7e18da6aae39807880731c820b0cf (diff)
parent91df95a90dd3266f4beeb7df7534f75882909581 (diff)
downloadforums-f09db1a7b4d9172035a461e90ce6fa3d7b544df3.tar
forums-f09db1a7b4d9172035a461e90ce6fa3d7b544df3.tar.gz
forums-f09db1a7b4d9172035a461e90ce6fa3d7b544df3.tar.bz2
forums-f09db1a7b4d9172035a461e90ce6fa3d7b544df3.tar.xz
forums-f09db1a7b4d9172035a461e90ce6fa3d7b544df3.zip
Merge branch 'develop-ascraeus' into develop
Conflicts: phpBB/config/services.yml
Diffstat (limited to 'phpBB/phpbb/session.php')
-rw-r--r--phpBB/phpbb/session.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php
index 5a0d7c0031..7d564742af 100644
--- a/phpBB/phpbb/session.php
+++ b/phpBB/phpbb/session.php
@@ -962,7 +962,7 @@ class session
*/
function session_gc()
{
- global $db, $config, $phpbb_root_path, $phpEx;
+ global $db, $config, $phpbb_root_path, $phpEx, $phpbb_container;
$batch_size = 10;
@@ -1022,11 +1022,7 @@ class session
}
// only called from CRON; should be a safe workaround until the infrastructure gets going
- if (!class_exists('phpbb_captcha_factory', false))
- {
- include($phpbb_root_path . "includes/captcha/captcha_factory." . $phpEx);
- }
- $captcha_factory = new \phpbb_captcha_factory();
+ $captcha_factory = $phpbb_container->get('captcha.factory');
$captcha_factory->garbage_collect($config['captcha_plugin']);
$sql = 'DELETE FROM ' . LOGIN_ATTEMPT_TABLE . '