[TYPO3-core] RFC: bug #2543

Wolfgang Klinger wolfgang at stufenlos.net
Fri Feb 24 19:30:18 CET 2006


 *hiya!*

 Type: bugfix

 tslib_div uses deprecated function call_user_method
 BT reference: http://bugs.typo3.org/view.php?id=2543


 bye
 Wolfgang

-------------- next part --------------
--- TYPO3core/t3lib/class.t3lib_div.php	2006-02-24 11:01:07.000000000 +0100
+++ TYPO3core_testing/t3lib/class.t3lib_div.php	2006-02-24 19:09:35.000000000 +0100
@@ -3503,9 +3503,9 @@
 
 			// Check persistent object and if found, call directly and exit.
 		if (is_array($GLOBALS['T3_VAR']['callUserFunction'][$funcName]))	{
-			return call_user_method(
-						$GLOBALS['T3_VAR']['callUserFunction'][$funcName]['method'],
-						$GLOBALS['T3_VAR']['callUserFunction'][$funcName]['obj'],
+			return call_user_func(
+						array(&$GLOBALS['T3_VAR']['callUserFunction'][$funcName]['obj'], 
+							$GLOBALS['T3_VAR']['callUserFunction'][$funcName]['method']),
 						$params,
 						$ref
 					);
@@ -3564,9 +3564,8 @@
 						);
 					}
 						// Call method:
-					$content = call_user_method(
-						$parts[1],
-						$classObj,
+					$content = call_user_func(
+						array(&$classObj, $parts[1]),
 						$params,
 						$ref
 					);


More information about the TYPO3-team-core mailing list