aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>';
?>