[TYPO3-dam] Bug in config handling ?

JéŽrô™me Schneider j.schneider at ameos.com
Thu Oct 22 11:53:47 CEST 2009


Hi Dam team,

I think I found a bug in DAM, head svn.

in /ext_localconf.php, at line 38, there's a call to 
tx_dam::config_setValue() that sets the config array in memory;
problem is, that this is executed *before* the $GLOBALS["TSFE"] object 
being instanciated and initialized (because we're in localconf!)

Consequently, tx_dam_config::_getTSconfig() fails, and 
tx_dam_config::init() sets an almost empty config array in memory, 
preventing further calls to init() (when TSFE is available) to correct 
this and to fetch the config. (because there's a check in init() to 
bypass config fetching if config array is already in memory)

Could someone confirm this ?


More information about the TYPO3-project-dam mailing list