diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-05-10 10:31:11 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-05-10 10:31:11 -0700 |
commit | 3d5db88999fbafa1d1ac6f0dedf01d692c2a968c (patch) | |
tree | 74fc5f4bacece7f8ea2f850abfce2bfd5fc6d18f | |
parent | 319500f0b54baa05286098f51407b3966a51121d (diff) | |
download | elgg-3d5db88999fbafa1d1ac6f0dedf01d692c2a968c.tar.gz elgg-3d5db88999fbafa1d1ac6f0dedf01d692c2a968c.tar.bz2 |
Fixes #4372. Using elgg_view_friendly_time() in river entries.
-rw-r--r-- | CHANGES.txt | 4 | ||||
-rw-r--r-- | views/default/river/elements/body.php | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index cabfd604b..2a3339c95 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,10 @@ Version 1.8.5 an account with Twitter. * Files: PDF files are downloaded as "inline" to display in the browser. + API: + * River entries' timestamps use elgg_view_friendly_time() and can be + overridden with the friendly time output view. + Version 1.8.4 (April 24, 2012 from https://github.com/Elgg/Elgg/tree/1.8) diff --git a/views/default/river/elements/body.php b/views/default/river/elements/body.php index 6894b81e2..2cd7f2289 100644 --- a/views/default/river/elements/body.php +++ b/views/default/river/elements/body.php @@ -18,7 +18,7 @@ $menu = elgg_view_menu('river', array( )); // river item header -$timestamp = elgg_get_friendly_time($item->getPostedTime()); +$timestamp = elgg_view_friendly_time($item->getPostedTime()); $summary = elgg_extract('summary', $vars, elgg_view('river/elements/summary', array('item' => $vars['item']))); if ($summary === false) { |