diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-12-12 03:16:52 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-12-12 03:16:52 +0000 |
commit | f3261b03dfe5ee472f8048b85a1f4b9aa776026d (patch) | |
tree | 303ff8943051dfb12234587a2f1157ab32de2da5 /pages/lists/mostviewedimages.php | |
parent | 60afb9fcf78831c7ae7bd1a885fc8d818051c6fd (diff) | |
download | elgg-f3261b03dfe5ee472f8048b85a1f4b9aa776026d.tar.gz elgg-f3261b03dfe5ee472f8048b85a1f4b9aa776026d.tar.bz2 |
setting page owner for some pages
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); |