[TYPO3-core] RFC: #9372: Code in class.tx_tstemplateanalyzer.php don't match with the new CGL

Stefano Kowalke blueduck at gmx.net
Wed Sep 17 23:43:24 CEST 2008


Masi wrote:
> You forgot to convert " to ' for simple strings.

Ideed, fixed.
 
> main() has a lot's of global stuff that can be removed as well.


You mean this two lines? 
 
> global $SOBE,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT
$TYPO3_CONF_VARS; 
> global $tmpl,$tplRow,$theConstants,$rootLine;


Changing eg. $BACK_PATH into $GLOBALS['BACK_PATH'], right?
But i don't no how to handle the last constant at first line:
$TYPO3_CONF_VARS which was used at end of file for the XCLASS.

And clould/should i use $GLOBALS[] for the second line too:
$GLOBALS['$tmpl'] ? 

Stefano

-- 
Seit dem 1.1.2008 werden Daten zu jeder E-Mail verdachtsunabhängig gespeichert! 
Weitere Informationen: www.vorratsdatenspeicherung.de
GPG-ID: 0x2B08936D
Key-Fingerprint: 7F31 BCF0 70C0 B3B1 1235 07E9 1777 D7A0 2B08 936D


More information about the TYPO3-team-core mailing list