diff options
| author | Henry Sudhof <kellanved@phpbb.com> | 2009-06-13 14:09:51 +0000 |
|---|---|---|
| committer | Henry Sudhof <kellanved@phpbb.com> | 2009-06-13 14:09:51 +0000 |
| commit | 11dc41063313d62b100c16bceb289b12c7c3bf2b (patch) | |
| tree | fc951aec5ce030c8bfab86071e2163bebf968988 /phpBB/includes/captcha/captcha_factory.php | |
| parent | cf3aad78cf902def95335f1e4bb7603126cd9221 (diff) | |
| download | forums-11dc41063313d62b100c16bceb289b12c7c3bf2b.tar forums-11dc41063313d62b100c16bceb289b12c7c3bf2b.tar.gz forums-11dc41063313d62b100c16bceb289b12c7c3bf2b.tar.bz2 forums-11dc41063313d62b100c16bceb289b12c7c3bf2b.tar.xz forums-11dc41063313d62b100c16bceb289b12c7c3bf2b.zip | |
Oh right. PHP4
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9581 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/captcha/captcha_factory.php')
| -rw-r--r-- | phpBB/includes/captcha/captcha_factory.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/captcha/captcha_factory.php b/phpBB/includes/captcha/captcha_factory.php index b5fa69990d..73406a954f 100644 --- a/phpBB/includes/captcha/captcha_factory.php +++ b/phpBB/includes/captcha/captcha_factory.php @@ -26,7 +26,7 @@ class phpbb_captcha_factory /** * return an instance of class $name in file $name_plugin.php */ - function get_instance($name) + function &get_instance($name) { global $phpbb_root_path, $phpEx; @@ -35,7 +35,8 @@ class phpbb_captcha_factory { include($phpbb_root_path . "includes/captcha/plugins/{$name}_plugin." . $phpEx); } - return call_user_func(array($name, 'get_instance')); + $instance =& call_user_func(array($name, 'get_instance')); + return $instance; } /** |
