1
0
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:
Henry Sudhof
2009-06-13 14:09:51 +00:00
parent cf3aad78cf
commit 11dc410633
10 changed files with 22 additions and 17 deletions

View File

@@ -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;
}
/**