+2010-08-24 Steffen Gebert <steffen@steffen-gebert.de>
+
+ * Added feature #15454: Provide a reason for logDeprecatedTypoScript()
+
2010-08-23 Steffen Gebert <steffen@steffen-gebert.de>
* Added feature #15534: t3lib_div::view_array: Improve rendering of objects (Thanks to Stefan Galinski)
2010-08-23 Steffen Gebert <steffen@steffen-gebert.de>
* Added feature #15534: t3lib_div::view_array: Improve rendering of objects (Thanks to Stefan Galinski)
} else {
$message = 'You logged out from Workspace preview mode. Click this link to <a href="%1$s">go back to the website</a>';
}
} else {
$message = 'You logged out from Workspace preview mode. Click this link to <a href="%1$s">go back to the website</a>';
}
$returnUrl = t3lib_div::sanitizeLocalUrl(t3lib_div::_GET('returnUrl'));
die(sprintf($message,
htmlspecialchars(preg_replace('/\&?ADMCMD_prev=[[:alnum:]]+/', '', $returnUrl))
$returnUrl = t3lib_div::sanitizeLocalUrl(t3lib_div::_GET('returnUrl'));
die(sprintf($message,
htmlspecialchars(preg_replace('/\&?ADMCMD_prev=[[:alnum:]]+/', '', $returnUrl))
$microtime_end = (isset($GLOBALS['TYPO3_MISC']['microtime_end'])) ? $GLOBALS['TYPO3_MISC']['microtime_end'] : NULL;
$microtime_BE_USER_start = (isset($GLOBALS['TYPO3_MISC']['microtime_BE_USER_start'])) ? $GLOBALS['TYPO3_MISC']['microtime_BE_USER_start'] : NULL;
$microtime_BE_USER_end = (isset($GLOBALS['TYPO3_MISC']['microtime_BE_USER_end'])) ? $GLOBALS['TYPO3_MISC']['microtime_BE_USER_end'] : NULL;
$microtime_end = (isset($GLOBALS['TYPO3_MISC']['microtime_end'])) ? $GLOBALS['TYPO3_MISC']['microtime_end'] : NULL;
$microtime_BE_USER_start = (isset($GLOBALS['TYPO3_MISC']['microtime_BE_USER_start'])) ? $GLOBALS['TYPO3_MISC']['microtime_BE_USER_start'] : NULL;
$microtime_BE_USER_end = (isset($GLOBALS['TYPO3_MISC']['microtime_BE_USER_end'])) ? $GLOBALS['TYPO3_MISC']['microtime_BE_USER_end'] : NULL;
$this->scriptParseTime = $GLOBALS['TT']->getMilliseconds($microtime_end) - $GLOBALS['TT']->getMilliseconds($microtime_start)
- ($GLOBALS['TT']->getMilliseconds($microtime_BE_USER_end) - $GLOBALS['TT']->getMilliseconds($microtime_BE_USER_start));
}
$this->scriptParseTime = $GLOBALS['TT']->getMilliseconds($microtime_end) - $GLOBALS['TT']->getMilliseconds($microtime_start)
- ($GLOBALS['TT']->getMilliseconds($microtime_BE_USER_end) - $GLOBALS['TT']->getMilliseconds($microtime_BE_USER_start));
}
/**
* Logs access to deprecated TypoScript objects and properties.
/**
* Logs access to deprecated TypoScript objects and properties.
* Dumps message to the TypoScript message log (admin panel) and the TYPO3 deprecation log.
* Dumps message to the TypoScript message log (admin panel) and the TYPO3 deprecation log.
+ * Note: The second parameter was introduced in TYPO3 4.5 and is not available in older versions
- * @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()
*/
* @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($typoScriptProperty, $explanation = '') {
+ $explanationText = (strlen($explanation) ? ' - ' . $explanation : '');
+ $GLOBALS['TT']->setTSlogMessage($typoScriptProperty . ' is deprecated.' . $explanationText, 2);
+ t3lib_div::deprecationLog('TypoScript ' . $typoScriptProperty . ' is deprecated' . $explanationText);