mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/9608] Remove use of references in captcha and other places
References are not really needed in PHP due to copy-on-write. Since PHP5, objects are always passed around as identifiers, which means they are mutable. So it is no longer required to pass these by reference either. PHPBB3-9608
This commit is contained in:
@@ -156,13 +156,13 @@ class ucp_register
|
||||
$this->tpl_name = 'ucp_agreement';
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
|
||||
|
||||
|
||||
// The CAPTCHA kicks in here. We can't help that the information gets lost on language change.
|
||||
if ($config['enable_confirm'])
|
||||
{
|
||||
include($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
|
||||
$captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
||||
$captcha = phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
||||
$captcha->init(CONFIRM_REG);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user