[BUGFIX] Remove check for invalid prefix in addService
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 22 Aug 2011 14:53:17 +0000 (16:53 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Mon, 22 Aug 2011 16:57:02 +0000 (18:57 +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: I078078eef5147cb267483a0d8d04ab113a24f7e9
Resolves: #29165
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/4525
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_extmgm.php

index ea752a9..3673177 100644 (file)
@@ -1003,7 +1003,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)) {
 
@@ -1706,4 +1705,4 @@ $GLOBALS[\'TYPO3_LOADED_EXT\'] = unserialize(stripslashes(\'' . addslashes(seria
        }
 }
 
-?>
\ No newline at end of file
+?>