diff options
Diffstat (limited to 'pages/lists/mostviewedimages.php')
-rw-r--r-- | pages/lists/mostviewedimages.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/lists/mostviewedimages.php b/pages/lists/mostviewedimages.php index 16b9d7295..1e856edc6 100644 --- a/pages/lists/mostviewedimages.php +++ b/pages/lists/mostviewedimages.php @@ -57,6 +57,11 @@ $title = sprintf(elgg_echo("tidypics:friendmostviewed"), page_owner_entity()->name); } } else { + // world view - set page owner to logged in user + if (isloggedin()) { + set_page_owner(get_loggedin_userid()); + } + $title = elgg_echo("tidypics:mostviewed"); } $area2 = elgg_view_title($title); |