[TYPO3-core] FYI: Cleanup (wrong global statement) in new TYPO3AJAX class

Benjamin Mack mack at xnos.org
Wed Feb 13 16:27:46 CET 2008


Hey,

this patch cleans up two things...

1. removes the TYPO3_GLOBAL_VARS as this one is not needed anymore (was 
used in a previous version but wasn't removed).
2. Adds LANG as this is used twice here, which is multiple usages IMHO 
and thus makes the code easier to read.


Dmitry Dulepov [typo3] wrote:
> Hi!
> 
> Benjamin Mack wrote:
>> FYI: The attached patch was commited to 4.2 branch (rev. #3156). It 
>> fixes some code that was not necessary.
> 
> Well, I do not think it is necessary to have "global $LANG" in this case. We generally use global for more usages of variable. I prefer this particular change to be reverted. Makes cleaner code.
> 

-- 
greetings,
benni.
-SDG-

www.xnos.de // www.xnos.org


More information about the TYPO3-team-core mailing list