[BUGFIX] Remove check for invalid prefix in addService
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Aug 2011 14:53:17 +0000 (16:53 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Aug 2011 17:41:59 +0000 (19:41 +0200)
t3lib_extMgm::addService() checks that $serviceType (eg. 'auth') does not start
with a valid class prefix. While it is probably not a good idea to prefix a
service type with 'user_' or 'tx_', there is no technical reason to enforce
this. The check especially leads to problems if
TYPO3_CONF_VARS['FE']['userFuncClassPrefix'] is set to an empty string.
This patch removes the check.

Change-Id: Iaf60da0eae61a2c64bb4626f5629b8c262d00cc2
Resolves: #29165
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/4528
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_extmgm.php

index cecf0d4..3c94309 100644 (file)
@@ -913,7 +913,6 @@ final class t3lib_extMgm {
                        // but maybe it's better to move non-available services to a different array??
 
                if ($serviceType &&
-                               !t3lib_div::hasValidClassPrefix($serviceType) &&
                                t3lib_div::hasValidClassPrefix($serviceKey, array('user_')) &&
                                is_array($info)) {