aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/recentlycommented.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-12-12 03:16:52 +0000
committerCash Costello <cash.costello@gmail.com>2009-12-12 03:16:52 +0000
commitf3261b03dfe5ee472f8048b85a1f4b9aa776026d (patch)
tree303ff8943051dfb12234587a2f1157ab32de2da5 /pages/lists/recentlycommented.php
parent60afb9fcf78831c7ae7bd1a885fc8d818051c6fd (diff)
downloadelgg-f3261b03dfe5ee472f8048b85a1f4b9aa776026d.tar.gz
elgg-f3261b03dfe5ee472f8048b85a1f4b9aa776026d.tar.bz2
setting page owner for some pages
Diffstat (limited to 'pages/lists/recentlycommented.php')
-rw-r--r--pages/lists/recentlycommented.php8
1 files changed, 6 insertions, 2 deletions
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 @@
<?php
/**
- * Tidypics full view of an image
- * Given a GUID, this page will try and display any entity
+ * Images recently commented on - world view only
*
*/
// Load Elgg engine
include_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php";
+ // world view - set page owner to logged in user
+ if (isloggedin()) {
+ set_page_owner(get_loggedin_userid());
+ }
+
global $CONFIG;
$prefix = $CONFIG->dbprefix;
$max_limit = 200; //get extra because you'll have multiple views per image in the result set