aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/widgets/latest_album_index/content.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/widgets/latest_album_index/content.php b/views/default/widgets/latest_album_index/content.php
index f57baee9d..c511a775a 100644
--- a/views/default/widgets/latest_album_index/content.php
+++ b/views/default/widgets/latest_album_index/content.php
@@ -32,10 +32,10 @@
?>
<div class="tidypics_album_widget_single_item">
<div class="tidypics_album_widget_title"><a href="<?php echo $album->getURL();?>"><?php echo $album->title;?></a></div>
- <div class="tidypics_album_widget_timestamp"> <?php echo elgg_echo("album:created:on") . ' ' . friendly_time($album->time_created);?></div>
+ <div class="tidypics_album_widget_timestamp"> <?php echo elgg_echo("album:created:on") . ' ' . elgg_get_friendly_time($album->time_created);?></div>
<?php
//get the number of comments
- $numcomments = elgg_count_comments($album);
+ $numcomments = $album->countComments();
if ($numcomments)
echo "<a href=\"{$album->getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")</a><br>";
?>