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

Oliver Klee typo3-german-02 at oliverklee.de
Wed Mar 10 11:53:30 CET 2010


Hi,

Tolleiv.Nietsch schrieb:
> 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'.

I see.

So how can we prevent the abovementioned problem, and still make the
function work?

> 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.



More information about the TYPO3-team-core mailing list