[TYPO3-core] RFC #15454: Provide a reason for logDeprecatedTypoScript()
Steffen Gebert
steffen at steffen-gebert.de
Fri Aug 13 21:15:51 CEST 2010
Hi!
This is a SVN patch request.
Type: Feature
Bugtracker reference:
http://bugs.typo3.org/view.php?id=15454
Branches:
trunk
Problem:
Currently there's no way to give an explanation, when logging usage of a
deprecated TypoScript object/property, because it's implemented the
following way:
> function logDeprecatedTyposcript($msg) {
> $GLOBALS['TT']->setTSlogMessage($msg . ' is deprecated.', 2);
> t3lib_div::deprecationLog('TypoScript ' . $msg);
> }
Because of one time, some text is appended to $msg and one time text is
prepended, all the logged entries would make no sense, if you want to
provide useful hints.
Solution:
Add a second parameter to provide an explanation
Note:
See patch for #13623 (v6) and discussions, why this is needed
Regards
Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15454.diff
Type: text/x-diff
Size: 1138 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100813/cac0f702/attachment.diff>
More information about the TYPO3-team-core
mailing list