Revert "[TASK] Rebuild the calcAge functionality"
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / Wizard / RteController.php
index 4cd4e04..4e85266 100644 (file)
@@ -243,15 +243,7 @@ class RteController {
                                                                'returnUrl' => $this->R_URI,
                                                        )
                                                )
-                                       ) . '; return false;') . '">' . 
-                                       '<img' . IconUtility::skinImg($this->doc->backPath, 'gfx/undo.gif') .
-                                       ' class="c-inputButton" title="' .
-                                       htmlspecialchars(
-                                               sprintf(
-                                                       $GLOBALS['LANG']->getLL('rte_undoLastChange'),
-                                                       \TYPO3\CMS\Core\Utility\DateTimeUtility::getAgeStringUnix($undoButtonR['tstamp'])
-                                               )
-                                       ) . '" alt="" /></a>';
+                                       ) . '; return false;') . '">' . '<img' . IconUtility::skinImg($this->doc->backPath, 'gfx/undo.gif') . ' class="c-inputButton" title="' . htmlspecialchars(sprintf($GLOBALS['LANG']->getLL('rte_undoLastChange'), BackendUtility::calcAge(($GLOBALS['EXEC_TIME'] - $undoButtonR['tstamp']), $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.minutesHoursDaysYears')))) . '" alt="" />' . '</a>';
                        }
                        // Shortcut
                        if ($GLOBALS['BE_USER']->mayMakeShortcut()) {