aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logbrowser/index.php')
-rw-r--r--mod/logbrowser/index.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/mod/logbrowser/index.php b/mod/logbrowser/index.php
index c548e450b..d0a6b7852 100644
--- a/mod/logbrowser/index.php
+++ b/mod/logbrowser/index.php
@@ -14,14 +14,21 @@
admin_gatekeeper();
set_context('admin');
- $limit = get_input('limit', 10);
+ $limit = get_input('limit', 40);
$offset = get_input('offset');
+
+ $user_guid = get_input('user_guid',0);
+ if ($user_guid) {
+ $user = (int) $user_guid;
+ } else {
+ $user = "";
+ }
$title = elgg_view_title(elgg_echo('logbrowser'));
// Get log entries
- $log = get_system_log("", "","",$limit, $offset);
- $count = get_system_log("", "","",$limit, $offset, true);
+ $log = get_system_log($user, "", "", $limit, $offset);
+ $count = get_system_log($user, "", "", $limit, $offset, true);
$log_entries = array();
foreach ($log as $l)
@@ -32,10 +39,10 @@
$log_entries[] = $tmp;
}
set_context('search');
- $result = elgg_view_entity_list($log_entries, $count, $offset, $limit, false);#
+ $result = elgg_view_entity_list($log_entries, $count, $offset, $limit, false, false);
set_context('admin');
// Display main admin menu
- page_draw($title,elgg_view_layout("two_column_left_sidebar", '', $title.$result));
+ page_draw(elgg_echo('logbrowser'),elgg_view_layout("two_column_left_sidebar", '', $title.$result));
?> \ No newline at end of file