[TYPO3-dev] Detecting the version of Typo3 for my extensio

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sat May 20 17:23:30 CEST 2006


Tapio Markula schrieb:
> 
> 
> What could be smart is a class methor for that
> function checkIfTypo4(){
> 
> if (t3lib_div::int_from_ver(TYPO3_version) < 4000000)
>     return true;
> 
> else
>     return false;
> }

Even smarter were TYPO3_version_major and TYPO3_version_minor constants.

Masi


PS: I don't get it why Tapio needed a var, so IÄm for deprecating the 
variable.




More information about the TYPO3-dev mailing list