[TYPO3-core] RFC: #13697: Add possibility to retrieve extension version

Tolleiv.Nietsch info at tolleiv.de
Wed Mar 10 08:45:00 CET 2010


Hi,

it's wrong to use "global $_EXTKEY".

Using this:
$ver = t3lib_extMgm::getExtensionVersion('templavoila');
within the ext_localconf.php of feeditadvanced, would easily break 
everything because all settings defined after that statement would use 
'templavoila' instead of 'feeditadvance'.

Besides that I don't like throwing exceptions for things which aren't 
really unusual. Having that exception just makes it "twice" as hard to 
use that function - because you've to prefix it with "isLoaded()" every 
time - without any real benefit.

Cheers,
Tolleiv
-- 
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de


More information about the TYPO3-team-core mailing list