summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-09-19 19:33:24 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-09-19 19:45:02 +0200
commite6ed8a30171b86b452cec21a283373fc14dd5330 (patch)
treeac50aa8118686421cce0e5970657095d3a2fde73 /includes/pages
parentb3b65743cdc534f7632c8e04e80d3489eec9677c (diff)
Changed LogEntries table: Use log level instead of nick name
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_log.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/pages/admin_log.php b/includes/pages/admin_log.php
index 03c9abb0..694b1d5a 100644
--- a/includes/pages/admin_log.php
+++ b/includes/pages/admin_log.php
@@ -17,12 +17,10 @@ function admin_log()
if (request()->has('keyword')) {
$filter = strip_request_item('keyword');
}
- $log_entries_source = LogEntries_filter($filter);
+ $log_entries = LogEntries_filter($filter);
- $log_entries = [];
- foreach ($log_entries_source as $log_entry) {
+ foreach ($log_entries as &$log_entry) {
$log_entry['date'] = date('d.m.Y H:i', $log_entry['timestamp']);
- $log_entries[] = $log_entry;
}
return page_with_title(admin_log_title(), [
@@ -33,7 +31,7 @@ function admin_log()
]),
table([
'date' => 'Time',
- 'nick' => 'Angel',
+ 'level' => 'Type',
'message' => 'Log Entry'
], $log_entries)
]);