mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Oh right. PHP4
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9581 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user