[Typo3-dev] BUG: Conditions processed twice

Carlos Chiari (DE) ccho at dimension-e.net
Mon Dec 22 19:10:17 CET 2003


Hi List:

I have found a bug (maybe there is a list somewhere for bugs... sorry):

userFunc on CONDITIONS are being parsed twice , and thus the userFunc throws
umpredictable results.

example:
------template ------
[userFunc = tx_myfunction(1)]
 page.100 = TEXT
 page.100.data = register:counter
[global]
---------------------

tx_myfunction($I) {
$GLOBALS['TSFE']->register['counter'] ++;
}

page.100 shows that counter has been set to 2.

I have even thought that maybe it is that CONDITIONS are procesed twice,
userFunc or not, but as the content inside is fixed, ie: you can't set
something like page.$counter = something, you can't tell that the content
has been rendered twice.

Anybody knows why this happens and how can be fixed?

Best regards, and merry holidays to you all.

Carlos







More information about the TYPO3-dev mailing list