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

Oliver Klee typo3-german-02 at oliverklee.de
Mon Mar 8 18:50:53 CET 2010


Hi,

I've created an updated patch for review with the following changes:

- change "Ext" in the function name to "Extension"
- apply CGL (including "public static" -> "static public" as stated in
the current CGL)
- document that $key must not be empty
- throw an exception if $key is empty or if the extension is not loaded
- make the function actually work by setting $_EXTKEY as global and
providing it with the requested extension key (otherwise $EM_CONF[$key]
will not be set)
- add unit tests (by which I found out that the current implementation
was broken)


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13697.diff
Type: text/x-patch
Size: 3796 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100308/39bb1b12/attachment.bin>


More information about the TYPO3-team-core mailing list