aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 10:11:47 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-26 10:11:47 +0000
commit881bbc33d233699b74099a6952e4a363aa2b988e (patch)
tree8e3b0cd43af1aad0372f0cf0c124d504091e6c0a /engine/lib/users.php
parent128f81a4210a66145f12b008f293215ade775cb0 (diff)
downloadelgg-881bbc33d233699b74099a6952e4a363aa2b988e.tar.gz
elgg-881bbc33d233699b74099a6952e4a363aa2b988e.tar.bz2
Fixes #95 - Now keying off system log entries so that whenever a user does something that triggers an event they are boosted.
git-svn-id: https://code.elgg.org/elgg/trunk@1140 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index c090f3267..5b8f04389 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -745,7 +745,8 @@
$time = time() - $seconds;
- $query = "SELECT * from {$CONFIG->dbprefix}entities where type='user' and time_updated>=$time order by time_updated desc limit $offset, $limit";
+ //$query = "SELECT * from {$CONFIG->dbprefix}entities where type='user' and time_updated>=$time order by time_updated desc limit $offset, $limit";
+ $query = "SELECT distinct e.* from {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}system_log s on e.guid=s.performed_by_guid where e.type='user' and s.time_created>=$time order by s.time_created desc limit $offset,$limit";
return get_data($query, "entity_row_to_elggstar");
}