aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-23 12:10:03 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-23 12:10:03 +0000
commite8fafaca927a17a6badad86e9a0c6ad4c911b8f1 (patch)
treebbf0e66eae3bbff318d4d04832ed579dc9fdc4b9 /lib
parentb726392855f1137803f25b710441375c20d0f140 (diff)
downloadelgg-e8fafaca927a17a6badad86e9a0c6ad4c911b8f1.tar.gz
elgg-e8fafaca927a17a6badad86e9a0c6ad4c911b8f1.tar.bz2
fixed widget bug
Diffstat (limited to 'lib')
-rw-r--r--lib/tidypics.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 20d3df81f..67d69e0da 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -32,7 +32,8 @@
* Good luck
*/
function tp_get_latest_photos($num_images, $owner_guid = 0, $context = 'front') {
- $prev_context = set_context($context);
+ $prev_context = get_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;