aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-23 22:19:47 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-23 22:19:47 +0000
commit602b37578a3a373f15b2f1d1641b3606c3f0d43b (patch)
tree7c6b3478bec4e872e9e35f91d6e45c742829151e
parenta2c5023bed6a515270d23efeb097b613bb978ffb (diff)
downloadelgg-602b37578a3a373f15b2f1d1641b3606c3f0d43b.tar.gz
elgg-602b37578a3a373f15b2f1d1641b3606c3f0d43b.tar.bz2
forgot to link up the new widget with the latest elgg bug work around
-rw-r--r--lib/tidypics.php2
-rw-r--r--views/default/widgets/latest/view.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 9a3a82af7..e9b3ad46d 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -33,7 +33,7 @@
function tp_get_latest_photos($num_images, $owner_guid = 0)
{
$prev_context = set_context('front');
- $image_html = list_entities('object', 'image', $owner_guid, $num_images, false, false, false);
+ $image_html = tp_list_entities('object', 'image', $owner_guid, $num_images, false, false, false);
set_context($prev_context);
return $image_html;
}
diff --git a/views/default/widgets/latest/view.php b/views/default/widgets/latest/view.php
index 6d65e9dc1..0c3193907 100644
--- a/views/default/widgets/latest/view.php
+++ b/views/default/widgets/latest/view.php
@@ -8,7 +8,7 @@
$number = 6;
echo '<div class="tidypics_widget_latest">';
- echo tp_get_latest_photos($number);
+ echo tp_get_latest_photos($number, page_owner());
echo '</div>';
?>