[TYPO3-core] RFC: #13697: Add possibility to retrieve extension version
Oliver Klee
typo3-german-02 at oliverklee.de
Thu Mar 25 14:04:51 CET 2010
Hi,
Tolleiv Nietsch schrieb:
> I know that
> throwing exceptions is a powerful tool in certain cases, but within the
> localconf.php context I'd prefer not to have exceptions since this might
> break complete installations just because someone uninstalled a certain
> extension.
I've attached an updated patch with the following changes:
- return an empty string instead of throwing an exception if the
extension is not installed
- drop the $GLOBAL (it wasn't actually necessary)
The function still throws an exception if $key is empty because this can
only happen if the function is called with a wrong parameter (which is a
coding error which the developer should be made aware of).
Oli
--
Certified TYPO3 Integrator | TYPO3 Security Team Member
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13697_v2.diff
Type: text/x-patch
Size: 3746 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100325/73c52695/attachment.bin>
More information about the TYPO3-team-core
mailing list