[Typo3-dev] version checking within extensions

Martin T. Kutschker Martin.T.Kutschker at blackbox.net
Thu Mar 18 14:59:52 CET 2004


Martin T. Kutschker wrote:
> S. Teuber wrote:
> 
>>
>> As a workaround, why don't you split the version by dots?
>> list($major, $minor, $whatever) = explode('.', $TYPO_VERSION);
> 
> I could if the naming scheme of this variable is consideed part of the 
> API, i.e. won't change for future versions. Don't know if this is true.

Any opinions?

I really like to have somethign like this for my old plugins 
(ext_tables.php):

if ($version > 3.5) {
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform';
}

Masi





More information about the TYPO3-dev mailing list