Project

General

Profile

Bug #23371 ยป 15454.diff

Administrator Admin, 2010-08-13 21:18

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
* Logs access to deprecated TypoScript objects and properties.
* Dumps message to the TypoScript message log (admin panel) and the TYPO3 deprecation log.
*
* @param string Message string
* @param string Deprecated object or property
* @param string Message or additional infomration
* @return void
* @see t3lib_div::deprecationLog(), t3lib_timeTrack::setTSlogMessage()
*/
function logDeprecatedTyposcript($msg) {
$GLOBALS['TT']->setTSlogMessage($msg . ' is deprecated.', 2);
t3lib_div::deprecationLog('TypoScript ' . $msg);
function logDeprecatedTyposcript($object, $explanation = '') {
$GLOBALS['TT']->setTSlogMessage($object . ' is deprecated.', 2);
$explanationText = (strlen($explanation) ? ' - ' . $explanation : '');
t3lib_div::deprecationLog('TypoScript ' . $object . ' is deprecated' . $explanationText);
}
/**
    (1-1/1)