aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/mostrecentimages.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/lists/mostrecentimages.php')
-rw-r--r--pages/lists/mostrecentimages.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/pages/lists/mostrecentimages.php b/pages/lists/mostrecentimages.php
index 5f5116513..8a9f8dbdb 100644
--- a/pages/lists/mostrecentimages.php
+++ b/pages/lists/mostrecentimages.php
@@ -1,7 +1,7 @@
<?php
/**
- * Most recently uploaded images
+ * Most recently uploaded images - individual or world
*
*/
@@ -24,6 +24,11 @@
else
$title = sprintf(elgg_echo("tidypics:friendmostrecent"), $user->name);
}
+ } else {
+ // world view - set page owner to logged in user
+ if (isloggedin()) {
+ set_page_owner(get_loggedin_userid());
+ }
}
// how many do we display