[TYPO3-core] RFC: Bug #7203: Hook cObjTypeAndClassDefault in tslib_content somtimes fails

Stefan Geith typo3dev2008.nospam1 at geithware.de
Mon Jan 21 10:11:51 CET 2008


Oliver Hader schrieb:
> Hi Dmirty,
> 
> Dmitry Dulepov [typo3] schrieb:
>> Hi!
>>
>> Oliver Hader wrote:
>>> The following TypoScript won't work then with the hook:
>>> 10 = COA
>>> 10 {
>>>   10 = MYOWNSTATICBLOCK
>>> }
>>
>> I am lost... Wouldn't it be parsed as
>>
>> 10 => 'COA'
>> 10. => array(
>>     10 => MYOWNSTATICBLOCK
>> )
>>
>> Next in the COA you get !is_array() as true.
>>
>> Or you mean object that misses config, cannot be passed to hook? But I 
>> see that hook expects $conf by definition, so object must have it.
> 
> Yes, it's more about the "MYOWNSTATICBLOCK" which has no $conf.
> It won't be processed by the hook and thus $conf should be casted for 
> this special case or set to a new empty array.
> 
> olly

So the attached Patch would be OK ?

-

Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0005536d-tslib_content.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080121/6850e6bc/attachment.txt 


More information about the TYPO3-team-core mailing list