aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-07-13 11:32:38 +0200
committerIgor Wiedler <igor@wiedler.ch>2011-07-13 11:32:38 +0200
commit4bdad7125a34e121f7857c34480d0527c1925384 (patch)
tree30d9c9da98d276a1cb6b4935973315cba0e50307 /phpBB/includes/ucp
parent09e0460e5b53f83f4c06703c8bd8f1cb0f22eb48 (diff)
downloadforums-4bdad7125a34e121f7857c34480d0527c1925384.tar
forums-4bdad7125a34e121f7857c34480d0527c1925384.tar.gz
forums-4bdad7125a34e121f7857c34480d0527c1925384.tar.bz2
forums-4bdad7125a34e121f7857c34480d0527c1925384.tar.xz
forums-4bdad7125a34e121f7857c34480d0527c1925384.zip
[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
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r--phpBB/includes/ucp/ucp_register.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 71374a9381..293bfb1af9 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -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);
}