[TYPO3-dev] Detecting sub-version of an extension

Oliver Hader oh at inpublica.de
Mon Sep 25 23:19:53 CEST 2006


Hi Tapio,

Tapio Markula wrote:
> You might not understand.
> I need condition for
> tinyrte 1.5.6
> if 1.5.6
> do certain way, if lower do another way

There is a possibility to do that:

$GLOBALS['EM_CONF'][$extKey]['version']
e.g. $GLOBALS['EM_CONF']['rtehtmlarea']['version']

The $GLOBALS['EM_CONF'][$extKey] array holds the data of the
ext_emconf.php file, so you can also read the author, dependencies,
state (alpha, beta, stable), ...


olly
-- 
Oliver Hader
http://inpublica.de/




More information about the TYPO3-dev mailing list