aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-07-23 00:07:38 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-07-23 00:07:38 +0200
commitc2d919f12d82b4c9c19f170f0c69c9b64d06f855 (patch)
treee3a363ef0043fcc1481e9a4c5c0ac5cfef260ef7 /phpBB/phpbb
parent73ae52d057e5f5c0cd1e21b20027a34d8e650752 (diff)
parent80f81dd0d2d4aaef0b9c770d6071526aaca79e06 (diff)
downloadforums-c2d919f12d82b4c9c19f170f0c69c9b64d06f855.tar
forums-c2d919f12d82b4c9c19f170f0c69c9b64d06f855.tar.gz
forums-c2d919f12d82b4c9c19f170f0c69c9b64d06f855.tar.bz2
forums-c2d919f12d82b4c9c19f170f0c69c9b64d06f855.tar.xz
forums-c2d919f12d82b4c9c19f170f0c69c9b64d06f855.zip
Merge remote-tracking branch 'asperous/ticket/11731' into develop
* asperous/ticket/11731: [ticket/11731] Remove static calls to captcha garbage collector
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/session.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php
index e0585b1523..dc33786666 100644
--- a/phpBB/phpbb/session.php
+++ b/phpBB/phpbb/session.php
@@ -1022,7 +1022,8 @@ class phpbb_session
{
include($phpbb_root_path . "includes/captcha/captcha_factory." . $phpEx);
}
- phpbb_captcha_factory::garbage_collect($config['captcha_plugin']);
+ $captcha_factory = new phpbb_captcha_factory();
+ $captcha_factory->garbage_collect($config['captcha_plugin']);
$sql = 'DELETE FROM ' . LOGIN_ATTEMPT_TABLE . '
WHERE attempt_time < ' . (time() - (int) $config['ip_login_limit_time']);