Project

General

Profile

Bug #20257 » tslibcontentCallsDeprecatedMICN.patch

Administrator Admin, 2009-03-31 19:54

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
// Split parts
$parts = explode('->',$funcName);
if (count($parts)==2) { // Class
$cls = t3lib_div::makeInstanceClassName($parts[0]);
// Check whether class is available and try to reload includeLibs if possible:
if ($this->isClassAvailable($cls, $conf)) {
$classObj = new $cls;
if ($this->isClassAvailable($parts[0], $conf)) {
$classObj = new $parts[0];
if (method_exists($classObj, $parts[1])) {
$classObj->cObj = &$this;
$content = call_user_func_array(array($classObj, $parts[1]), array($content, $conf));
(1-1/5)