[TASK] Streamline class prefix handling in the core
authorSusanne Moog <typo3@susannemoog.de>
Mon, 22 Aug 2011 15:53:51 +0000 (17:53 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Aug 2011 19:59:34 +0000 (21:59 +0200)
commitfb0b7724ed692ac458f97426f80bb2553d52c269
treec13b8d158a23f9d490767ac8de03ce8e865df26b
parent12667025405c254a162c67372fc3be4c50b84f3f
[TASK] Streamline class prefix handling in the core

At the moment the frontend option userFuncClassPrefix is also checked in
various backend scenarios (for example the registry) and in general
everywhere t3lib_div::hasValidPrefix is called. Therefore it should be a system
option. Additionally to ensure "user_" is working as a prefix this was given
hardcoded as additionalPrefix to the function in some cases.

This patch streamlines the handling of prefixes, introduces a [SYS] option
additionalAllowedClassPrefixes, deprecates the [FE] option and allows
the prefixes 'tx_', 'Tx_', 'user_' and 'User_' by default.

Change-Id: I70fa89120dbe8c7790e3d6de4b173b69beb8a6f9
Resolves: #29166
Releases: 4.6
Reviewed-on: http://review.typo3.org/4526
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_div.php
t3lib/class.t3lib_extmgm.php
t3lib/class.t3lib_registry.php
t3lib/config_default.php
t3lib/matchcondition/class.t3lib_matchcondition_abstract.php
t3lib/matchcondition/class.t3lib_matchcondition_backend.php
t3lib/matchcondition/class.t3lib_matchcondition_frontend.php
tests/t3lib/class.t3lib_divTest.php
typo3/sysext/cms/tslib/class.tslib_content.php