[TYPO3-dev] Detecting sub-version of an extension
Tapio Markula
tapio.markula at atwebteam.com
Tue Sep 26 08:22:37 CEST 2006
Oliver Hader kirjoitti:
> 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
thanks then
t3lib_div::int_from_ver($GLOBALS['EM_CONF']['tinyrte']['version']) >=
1550000
should be ok?
I need this because of changed file structure after 1.5.4
More information about the TYPO3-dev
mailing list