Project

General

Profile

Bug #24442 » 0016877.patch

Administrator Admin, 2010-12-30 18:56

View differences:

t3lib/class.t3lib_befunc.php (working copy)
case 'input':
if (isset($value)) {
if (t3lib_div::inList($theColConf['eval'], 'date')) {
$l = self::date($value) .
' (' .
($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') .
self::calcAge(abs($GLOBALS['EXEC_TIME'] - $value), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')) .
')';
if((int) $value > 0) {
$l = self::date($value) .
' (' .
($GLOBALS['EXEC_TIME'] - $value > 0 ? '-' : '') .
self::calcAge(abs($GLOBALS['EXEC_TIME'] - $value), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')) .
')';
} else {
$l = '';
}
} elseif (t3lib_div::inList($theColConf['eval'], 'time')) {
$l = self::time($value, FALSE);
} elseif (t3lib_div::inList($theColConf['eval'], 'timesec')) {
$l = self::time($value);
} elseif (t3lib_div::inList($theColConf['eval'], 'datetime')) {
$l = self::datetime($value);
if((int) $value > 0) {
$l = self::datetime($value);
} else {
$l = '';
}
} else {
$l = $value;
}
(2-2/3)