diff options
author | Andy Chase <asperous2@gmail.com> | 2013-07-22 15:04:30 -0700 |
---|---|---|
committer | Andy Chase <asperous2@gmail.com> | 2013-07-22 15:04:30 -0700 |
commit | 80f81dd0d2d4aaef0b9c770d6071526aaca79e06 (patch) | |
tree | 82d8ccd5fe6f5207243c3d4d55d79f84fd471125 /phpBB/phpbb/session.php | |
parent | b71038486e067daf0c608d73aabeb60a56e86840 (diff) | |
download | forums-80f81dd0d2d4aaef0b9c770d6071526aaca79e06.tar forums-80f81dd0d2d4aaef0b9c770d6071526aaca79e06.tar.gz forums-80f81dd0d2d4aaef0b9c770d6071526aaca79e06.tar.bz2 forums-80f81dd0d2d4aaef0b9c770d6071526aaca79e06.tar.xz forums-80f81dd0d2d4aaef0b9c770d6071526aaca79e06.zip |
[ticket/11731] Remove static calls to captcha garbage collector
PHPBB3-11731
Diffstat (limited to 'phpBB/phpbb/session.php')
-rw-r--r-- | phpBB/phpbb/session.php | 3 |
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']); |