[TYPO3-core] RFC #9094: Make simulate static a system extension

Dmitry Dulepov [typo3] dmitry at typo3.org
Fri Aug 15 21:26:06 CEST 2008


Hi!

Benjamin Mack wrote:
> Martin Kutschker wrote:
>> Me too. But I think this should be done in a separate patch called
>> "allow subkeys in config". I don't want to add this to this patch and
>> without this change this patch is broken as page.config. doesn't work as
>> advertised.
> Can you point me to the place where this happens?
> 
> I noticed the lines (2025ff in class.tslib_fe.php) that do this:
> 
> ======================
> $this->config['config']=Array();
> 
>     // Filling the config-array.
> if (is_array($this->tmpl->setup['config.']))    {
>     $this->config['config'] = $this->tmpl->setup['config.'];
> }
> if (is_array($this->pSetup['config.']))    {
>     reset($this->pSetup['config.']);
>     while(list($theK,$theV)=each($this->pSetup['config.']))    {
>         $this->config['config'][$theK] = $theV;
>     }
> }
> ======================
> 
> seems like it's merging everything, ain't it?

"config" may contain only one level. If there are more than one level, it will not be merged properly by this code. This is a well-known historical feature...

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/typo3_code_formatting_in_eclipse/


More information about the TYPO3-team-core mailing list