aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-09-05 20:46:40 +0200
committerSem <sembrestels@riseup.net>2013-09-05 20:46:40 +0200
commit7088874171f29e4f6decae143681bab458134a0b (patch)
tree72db146365ddfa6a8f8bc9a95b11305afa55c79b /views
parente657a8c940a08dbe90d8a53f88ff40aad7e7a729 (diff)
downloadelgg-7088874171f29e4f6decae143681bab458134a0b.tar.gz
elgg-7088874171f29e4f6decae143681bab458134a0b.tar.bz2
Removed deprecated function uses.
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>";
?>