diff options
Diffstat (limited to 'mod/embed/views/default')
-rw-r--r-- | mod/embed/views/default/embed/item/list.php | 2 | ||||
-rw-r--r-- | mod/embed/views/default/object/file/embedlist.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/embed/views/default/embed/item/list.php b/mod/embed/views/default/embed/item/list.php index 258e01aed..c45b42e19 100644 --- a/mod/embed/views/default/embed/item/list.php +++ b/mod/embed/views/default/embed/item/list.php @@ -42,7 +42,7 @@ if ($ecml_keyword) { $icon = "<img src=\"{$item->getIcon($icon_size)}\" />"; $info = "<p class='entity_title'>" . htmlentities($title, ENT_QUOTES, 'UTF-8') . "</p>"; -$info .= "<p class='entity_subtext'>" . friendly_time($vars['item']->time_created) . "</p>"; +$info .= "<p class='entity_subtext'>" . elgg_view_friendly_time($vars['item']->time_created) . "</p>"; // @todo is this approach better than inline js? echo "<div class=\"embed_data\" id=\"embed_{$item->getGUID()}\">" . elgg_view_listing($icon, $info) . '</div>'; diff --git a/mod/embed/views/default/object/file/embedlist.php b/mod/embed/views/default/object/file/embedlist.php index 345e69b4b..1f287b938 100644 --- a/mod/embed/views/default/object/file/embedlist.php +++ b/mod/embed/views/default/object/file/embedlist.php @@ -1,6 +1,6 @@ <?php $file = $vars['entity']; - $friendlytime = friendly_time($vars['entity']->time_created); + $friendlytime = elgg_view_friendly_time($vars['entity']->time_created); $info = "<p class='entity_title'> <a href=\"{$file->getURL()}\">{$file->title}</a></p>"; $info .= "<p class='entity_subtext'>{$friendlytime}"; |