Bug #24341
closed
No access to cObj in classes tslib_content_Media , tslib_content_Abstract by custom media renderer
Added by Sven Wappler almost 14 years ago.
Updated over 10 years ago.
Description
The tslib_content_Media object passes on itself to customMediaRender function in class.tslib_content_media.php line 229:
$content = $hookObj->customMediaRender($renderType, $conf, $this);
But the custom media renderer cannot access the cObj variable because it is protected. But access is necessary for reading out important data. Please pass on the cObj-variable to the renderer or make it accessible.
(issue imported from #M16746)
Was $this->cObj accessible before?
In Version 4.4 the cObj was passed directly in typo3/sysext/cms/tslib/class.tslib_content.php in lin 2829 because the caller of the function $hookObj->customMediaRender($renderType, $conf, $this) was the cObj self. That is the reason why the new way is completely incompatible to former versions.
So before $this was the cObj, now it is tslib_content_Media?
Okay, great.. thanks for your feedback!
Would you mind sending an RFC to the core team list, to get this change into the svn repository? I've described the process here http://typo3blogger.de/ab-in-den-core/
Thanks for your contribution!
- Status changed from New to Needs Feedback
- Target version deleted (
0)
- Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF