aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-08-11 12:20:35 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-08-11 12:20:35 +0200
commit91df95a90dd3266f4beeb7df7534f75882909581 (patch)
tree4aa78d8abf67a08571dd7421251d104415dd2bf4 /phpBB/posting.php
parentc10c6bd34297afbf6b32f5047a85c33fa546c23d (diff)
parent756aa68b34e8584c7e010b2295ff63e485be1907 (diff)
downloadforums-91df95a90dd3266f4beeb7df7534f75882909581.tar
forums-91df95a90dd3266f4beeb7df7534f75882909581.tar.gz
forums-91df95a90dd3266f4beeb7df7534f75882909581.tar.bz2
forums-91df95a90dd3266f4beeb7df7534f75882909581.tar.xz
forums-91df95a90dd3266f4beeb7df7534f75882909581.zip
Merge pull request #2842 from Nicofuma/ticket/11854
[ticket/11854] Move captchas to phpbb/ and use DI for plugins
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 6638caa94b..4c3d012ca5 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -241,8 +241,7 @@ $user->setup(array('posting', 'mcp', 'viewtopic'), $post_data['forum_style']);
if ($config['enable_post_confirm'] && !$user->data['is_registered'])
{
- include($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
- $captcha = phpbb_captcha_factory::get_instance($config['captcha_plugin']);
+ $captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
$captcha->init(CONFIRM_POST);
}