aboutsummaryrefslogtreecommitdiff
path: root/lib/tidypics.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-08-04 23:09:57 +0000
committerCash Costello <cash.costello@gmail.com>2010-08-04 23:09:57 +0000
commit3838caed15ac73f81827829b6c094aae3c3f3539 (patch)
tree6a001f557221453dc1987a588f21b62b3010fff0 /lib/tidypics.php
parent1d3b83e6791b1e9e3386bb79937ef58240ba94ba (diff)
downloadelgg-3838caed15ac73f81827829b6c094aae3c3f3539.tar.gz
elgg-3838caed15ac73f81827829b6c094aae3c3f3539.tar.bz2
fixed bug where latest photos widget was trying to display 4 photos across instead of three - need a better long term solution
Diffstat (limited to 'lib/tidypics.php')
-rw-r--r--lib/tidypics.php4
1 files changed, 2 insertions, 2 deletions
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;