From f3261b03dfe5ee472f8048b85a1f4b9aa776026d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 12 Dec 2009 03:16:52 +0000 Subject: setting page owner for some pages --- pages/lists/mostrecentimages.php | 7 ++++++- pages/lists/mostviewedimages.php | 5 +++++ pages/lists/recentlycommented.php | 8 ++++++-- pages/lists/recentlyviewed.php | 8 ++++++-- 4 files changed, 23 insertions(+), 5 deletions(-) (limited to 'pages/lists') 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 @@ name); } + } else { + // world view - set page owner to logged in user + if (isloggedin()) { + set_page_owner(get_loggedin_userid()); + } } // how many do we display 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); diff --git a/pages/lists/recentlycommented.php b/pages/lists/recentlycommented.php index 962732dba..a39caf6ae 100644 --- a/pages/lists/recentlycommented.php +++ b/pages/lists/recentlycommented.php @@ -1,14 +1,18 @@ dbprefix; $max_limit = 200; //get extra because you'll have multiple views per image in the result set diff --git a/pages/lists/recentlyviewed.php b/pages/lists/recentlyviewed.php index 1fa1be0ea..b61107fc4 100644 --- a/pages/lists/recentlyviewed.php +++ b/pages/lists/recentlyviewed.php @@ -1,14 +1,18 @@ dbprefix; $max_limit = 200; //get extra because you'll have multiple views per image in the result set -- cgit v1.2.3