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

Ingo Renner typo3 at ingo-renner.com
Fri May 19 16:23:38 CEST 2006


Am Fri, 19 May 2006 14:24:49 +0300 schrieb Tapio Markula:

> Hi
> 
> I would need condition if($TypoVer >= 4.0)
> 
> how I could get the version of Typo3?

$version =
$GLOBALS['TYPO3_VERSION']?$GLOBALS['TYPO3_VERSION']:$GLOBALS['TYPO_VERSION'];

always use $GLOBALS['TYPO3_VERSION']

but as this variable is not available in older versions you need to check
for it and use $GLOBALS['TYPO_VERSION'] in case it is an old version and
thus not available.


Ingo

-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list