diff options
Diffstat (limited to 'views/default/output/friendlytime.php')
-rw-r--r-- | views/default/output/friendlytime.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/views/default/output/friendlytime.php b/views/default/output/friendlytime.php index dc9699fba..22f60d517 100644 --- a/views/default/output/friendlytime.php +++ b/views/default/output/friendlytime.php @@ -4,11 +4,9 @@ * Translates an epoch time into a human-readable time. * * @uses string $vars['time'] Unix-style epoch timestamp - * @override views/default/output/friendlytime.php */ $friendly_time = elgg_get_friendly_time($vars['time']); -$timestamp = htmlentities(date(elgg_echo('friendlytime:date_format'), $vars['time'])); -$datetime = htmlentities(date("c", $vars['time'])); +$timestamp = htmlspecialchars(date(elgg_echo('friendlytime:date_format'), $vars['time'])); -echo "<time title=\"$timestamp\" datetime=\"$datetime\" class=\"timestamp\">$friendly_time</time>"; +echo "<acronym title=\"$timestamp\">$friendly_time</acronym>"; |