This commit is contained in:
Jean-Christian Denis 2022-12-20 22:30:58 +01:00
parent f4e8e597a5
commit 6588ab0906
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@ dcCore::app()->addBehavior('adminColumnsListsV2', function (ArrayObject $cols) {
$cols['dcloglist'] = [ $cols['dcloglist'] = [
__('Log'), __('Log'),
[ [
'date' => [true, __('Date')], 'date' => [true, __('Date')],
//'msg' => [true, __('Message')], //'msg' => [true, __('Message')],
'blog' => [true, __('Blog')], 'blog' => [true, __('Blog')],
'table' => [true, __('Component')], 'table' => [true, __('Component')],

View file

@ -74,25 +74,25 @@ class dcLogList extends adminGenericListV2
'check' => '<td class="nowrap minimal">' . 'check' => '<td class="nowrap minimal">' .
form::checkbox(['entries[]'], $this->rs->log_id, ['checked' => $checked]) . form::checkbox(['entries[]'], $this->rs->log_id, ['checked' => $checked]) .
'</td>', '</td>',
'date' => '<td class="nowrap minimal">' . 'date' => '<td class="nowrap minimal">' .
html::escapeHTML(dt::dt2str( html::escapeHTML(dt::dt2str(
__('%Y-%m-%d %H:%M'), __('%Y-%m-%d %H:%M'),
$this->rs->log_dt $this->rs->log_dt
)) . )) .
'</td>', '</td>',
'msg' => '<td class="maximal">' . 'msg' => '<td class="maximal">' .
nl2br(html::escapeHTML($this->rs->log_msg)) . nl2br(html::escapeHTML($this->rs->log_msg)) .
'</td>', '</td>',
'blog' => '<td class="minimal nowrap">' . 'blog' => '<td class="minimal nowrap">' .
html::escapeHTML($this->rs->blog_id) . html::escapeHTML($this->rs->blog_id) .
'</td>', '</td>',
'table' => '<td class="minimal nowrap">' . 'table' => '<td class="minimal nowrap">' .
html::escapeHTML($this->rs->log_table) . html::escapeHTML($this->rs->log_table) .
'</td>', '</td>',
'user' => '<td class="minimal nowrap">' . 'user' => '<td class="minimal nowrap">' .
html::escapeHTML($this->rs->getUserCN()) . html::escapeHTML($this->rs->getUserCN()) .
'</td>', '</td>',
'ip' => '<td class="minimal nowrap">' . 'ip' => '<td class="minimal nowrap">' .
html::escapeHTML($this->rs->log_ip) . html::escapeHTML($this->rs->log_ip) .
'</td>', '</td>',
]; ];