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

Oliver Hader oh at inpublica.de
Fri Jan 18 17:12:01 CET 2008


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
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list