diff options
Diffstat (limited to 'modules/watchdog/watchdog.module')
-rw-r--r-- | modules/watchdog/watchdog.module | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index e350d8485..30e454ac2 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -102,7 +102,7 @@ function watchdog_overview() { array('data' => t('Date'), 'field' => 'w.wid', 'sort' => 'desc'), array('data' => t('Message'), 'field' => 'w.message'), array('data' => t('User'), 'field' => 'u.name'), - array('data' => t('Operations'), 'colspan' => '2') + array('data' => t('Operations')) ); $sql = 'SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid '. $queries[$_SESSION['watchdog_overview_filter']] . tablesort_sql($header); $result = pager_query($sql, 50); @@ -114,10 +114,9 @@ function watchdog_overview() { $icons[$watchdog->severity], t($watchdog->type), format_date($watchdog->timestamp, 'small'), - truncate_utf8($watchdog->message, 64), + l(truncate_utf8($watchdog->message, 64), 'admin/logs/event/'. $watchdog->wid, array(), NULL, NULL, FALSE, TRUE), theme('username', $watchdog), $watchdog->link, - l(t('details'), "admin/logs/event/$watchdog->wid") ), // Attributes for tr 'class' => "watchdog-". preg_replace('/[^a-z]/i', '-', $watchdog->type) .' '. $classes[$watchdog->severity] @@ -125,7 +124,7 @@ function watchdog_overview() { } if (!$rows) { - $rows[] = array(array('data' => t('No log messages available.'), 'colspan' => '7')); + $rows[] = array(array('data' => t('No log messages available.'), 'colspan' => 6)); } |