X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/61286ef38b1785f8225bbc7d26053ab704c401fe..cb093068bb8032909c6c6975e035d52ad398eb1d:/typo3/sysext/backend/Classes/Utility/BackendUtility.php diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php index fce9b8b5aa5a..6d2830e23d6c 100755 --- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php +++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php @@ -2404,7 +2404,18 @@ class BackendUtility { $value = $value !== $emptyValue ? strtotime($value) : 0; } if (!empty($value)) { - $l = self::date($value) . ' (' . ($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') . self::calcAge(abs(($GLOBALS['EXEC_TIME'] - $value)), $lang->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears')) . ')'; + $ageSuffix = ''; + $dateColumnConfiguration = $GLOBALS['TCA'][$table]['columns'][$col]['config']; + $ageDisplayKey = 'disableAgeDisplay'; + + // generate age suffix as long as not explicitly suppressed + if (!isset($dateColumnConfiguration[$ageDisplayKey]) + // non typesafe comparison on intention + || $dateColumnConfiguration[$ageDisplayKey] == FALSE) { + $ageSuffix = ' (' . ($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') . self::calcAge(abs(($GLOBALS['EXEC_TIME'] - $value)), $lang->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears')) . ')'; + } + + $l = self::date($value) . $ageSuffix; } } elseif (GeneralUtility::inList($theColConf['eval'], 'time')) { if (!empty($value)) {