Fixed bug #7029: tslib_cObj uses deprecated function call_user_method
authorOliver Hader <oliver.hader@typo3.org>
Mon, 4 Feb 2008 11:59:44 +0000 (11:59 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 4 Feb 2008 11:59:44 +0000 (11:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3052 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index 6a92f89..ba87578 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 2008-02-04  Oliver Hader  <oh@inpublica.de>
 
        * (feature) Added feature #5242: IRRE - Storage page for child records
+       * (minor) Fixed bug #7029: tslib_cObj uses deprecated function call_user_method
 
 2008-02-03  Dmitry Dulepov  <dmitry@typo3.org>
 
index 0b87ca4..c976f0d 100755 (executable)
@@ -5775,7 +5775,7 @@ class tslib_cObj {
                                $classObj = new $cls;
                                if (method_exists($classObj, $parts[1]))        {
                                        $classObj->cObj = &$this;
-                                       $content = call_user_method($parts[1], $classObj, $content, $conf);
+                                       $content = call_user_func_array(array($classObj, $parts[1]), array($content, $conf));
                                } else {
                                        $GLOBALS['TT']->setTSlogMessage('Method "'.$parts[1].'" did not exist in class "'.$cls.'"',3);
                                }