aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/views/default/admin
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-22 21:59:12 -0500
committercash <cash.costello@gmail.com>2011-11-28 21:44:01 -0500
commita9811d7d0641371e8067700603b27abb8f8e65e6 (patch)
treecea997c1ecb090be6a8a8583935d62f83757d10d /mod/logbrowser/views/default/admin
parentd2a0969effd0d01b5e26ab916398bc0eb08cb9f6 (diff)
downloadelgg-a9811d7d0641371e8067700603b27abb8f8e65e6.tar.gz
elgg-a9811d7d0641371e8067700603b27abb8f8e65e6.tar.bz2
Fixes #3775 updates the log browser link and keeps the refine area open if the page is loaded with a user selected
Diffstat (limited to 'mod/logbrowser/views/default/admin')
-rw-r--r--mod/logbrowser/views/default/admin/administer_utilities/logbrowser.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/logbrowser/views/default/admin/administer_utilities/logbrowser.php b/mod/logbrowser/views/default/admin/administer_utilities/logbrowser.php
index 2be1f33dc..a04ef686a 100644
--- a/mod/logbrowser/views/default/admin/administer_utilities/logbrowser.php
+++ b/mod/logbrowser/views/default/admin/administer_utilities/logbrowser.php
@@ -13,14 +13,14 @@ $offset = get_input('offset');
$search_username = get_input('search_username');
if ($search_username) {
if ($user = get_user_by_username($search_username)) {
- $user = $user->guid;
+ $user_guid = $user->guid;
}
} else {
$user_guid = get_input('user_guid',0);
if ($user_guid) {
- $user = (int) $user_guid;
+ $user_guid = (int) $user_guid;
} else {
- $user = "";
+ $user_guid = null;
}
}
@@ -35,14 +35,14 @@ if ($timeupper) {
}
$refine = elgg_view('logbrowser/refine', array(
- 'user_guid' => $user,
+ 'user_guid' => $user_guid,
'timeupper' => $timeupper,
'timelower' => $timelower,
));
// Get log entries
-$log = get_system_log($user, "", "", "","", $limit, $offset, false, $timeupper, $timelower);
-$count = get_system_log($user, "", "", "","", $limit, $offset, true, $timeupper, $timelower);
+$log = get_system_log($user_guid, "", "", "","", $limit, $offset, false, $timeupper, $timelower);
+$count = get_system_log($user_guid, "", "", "","", $limit, $offset, true, $timeupper, $timelower);
$table = elgg_view('logbrowser/table', array('log_entries' => $log));