From 3838caed15ac73f81827829b6c094aae3c3f3539 Mon Sep 17 00:00:00 2001
From: Cash Costello <cash.costello@gmail.com>
Date: Wed, 4 Aug 2010 23:09:57 +0000
Subject: fixed bug where latest photos widget was trying to display 4 photos
 across instead of three - need a better long term solution

---
 lib/tidypics.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'lib')

diff --git a/lib/tidypics.php b/lib/tidypics.php
index 539db451a..20d3df81f 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -31,8 +31,8 @@
 
  * Good luck
  */
-function tp_get_latest_photos($num_images, $owner_guid = 0) {
-	$prev_context = set_context('front');
+function tp_get_latest_photos($num_images, $owner_guid = 0, $context = 'front') {
+	$prev_context = set_context($context);
 	$image_html = tp_list_entities('object', 'image', $owner_guid, null, $num_images, false, false, false);
 	set_context($prev_context);
 	return $image_html;
-- 
cgit v1.2.3