diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2012-01-20 18:43:34 -0800 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2012-01-20 18:43:34 -0800 |
commit | 12c4a61edc0a225677c31f6d26a7a785c065c115 (patch) | |
tree | a17ceb5171ce8225f25fcb6299dd6739f9e47365 /mod/logbrowser/views/default/logbrowser/table.php | |
parent | 9cca28b590a5884033c60af5a47aa3dcc383f7f0 (diff) | |
download | elgg-12c4a61edc0a225677c31f6d26a7a785c065c115.tar.gz elgg-12c4a61edc0a225677c31f6d26a7a785c065c115.tar.bz2 |
Fixes #2222. Added IP address to system log table and log browser. Fixed problem in log browser that would only show entries without an owner_guid.
Diffstat (limited to 'mod/logbrowser/views/default/logbrowser/table.php')
-rw-r--r-- | mod/logbrowser/views/default/logbrowser/table.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/logbrowser/views/default/logbrowser/table.php b/mod/logbrowser/views/default/logbrowser/table.php index b7f6a1f20..9a867e080 100644 --- a/mod/logbrowser/views/default/logbrowser/table.php +++ b/mod/logbrowser/views/default/logbrowser/table.php @@ -11,6 +11,7 @@ $log_entries = $vars['log_entries']; <table class="elgg-table"> <tr> <th><?php echo elgg_echo('logbrowser:date'); ?></th> + <th><?php echo elgg_echo('logbrowser:ip_address'); ?></th> <th><?php echo elgg_echo('logbrowser:user:name'); ?></th> <th><?php echo elgg_echo('logbrowser:user:guid'); ?></th> <th><?php echo elgg_echo('logbrowser:object'); ?></th> @@ -20,6 +21,12 @@ $log_entries = $vars['log_entries']; <?php $alt = ''; foreach ($log_entries as $entry) { + if ($entry->ip_address) { + $ip_address = $entry->ip_address; + } else { + $ip_address = ' '; + } + $user = get_entity($entry->performed_by_guid); if ($user) { $user_link = elgg_view('output/url', array( @@ -51,6 +58,9 @@ $log_entries = $vars['log_entries']; <td class="log-entry-time"> <?php echo date('r', $entry->time_created); ?> </td> + <td class="log-entry-ip-address"> + <?php echo $ip_address; ?> + </td> <td class="log-entry-user"> <?php echo $user_link; ?> </td> |