aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/recentlyviewed.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/recentlyviewed.php
parent60afb9fcf78831c7ae7bd1a885fc8d818051c6fd (diff)
downloadelgg-f3261b03dfe5ee472f8048b85a1f4b9aa776026d.tar.gz
elgg-f3261b03dfe5ee472f8048b85a1f4b9aa776026d.tar.bz2
setting page owner for some pages
Diffstat (limited to 'pages/lists/recentlyviewed.php')
-rw-r--r--pages/lists/recentlyviewed.php8
1 files changed, 6 insertions, 2 deletions
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 @@
<?php
/**
- * Tidypics full view of an image
- * Given a GUID, this page will try and display any entity
+ * Most recently viewed images - world view only right now
*
*/
// 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