aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/system_log.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-27 09:45:01 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-27 09:45:01 +0000
commit591e30d8381e4c21c125b6b8b2905869f1d68e41 (patch)
treef8a1cc964bf0297d4e0c7a3b8d48e7a5783d529a /engine/lib/system_log.php
parent82362e03b337622ab65a37d1349f5213bdac0518 (diff)
downloadelgg-591e30d8381e4c21c125b6b8b2905869f1d68e41.tar.gz
elgg-591e30d8381e4c21c125b6b8b2905869f1d68e41.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Restrictions checked git-svn-id: https://code.elgg.org/elgg/trunk@721 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/system_log.php')
-rw-r--r--engine/lib/system_log.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php
index f7a44fb7d..9f640fcf3 100644
--- a/engine/lib/system_log.php
+++ b/engine/lib/system_log.php
@@ -70,6 +70,9 @@
foreach ($where as $w)
$query .= " and $w";
+ $query .= " order by time_created desc";
+ $query .= " limit $offset, $limit"; // Add order and limit
+
return get_data($query);
}