aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/recentlycommented.php
diff options
context:
space:
mode:
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