diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-24 19:50:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-24 19:50:50 +0000 |
commit | 70eb349d88a73263b9bc49f1f9a2ea394dff35d2 (patch) | |
tree | 1f972585d4e7fddad5a06efc8f648ed276f1fc5e /modules/watchdog.module | |
parent | c9b342e3e183296b60ec0af47aae5dd4a34852ff (diff) | |
download | brdo-70eb349d88a73263b9bc49f1f9a2ea394dff35d2.tar.gz brdo-70eb349d88a73263b9bc49f1f9a2ea394dff35d2.tar.bz2 |
- Patch #38667 by Neil: removed a column from the table on the watchdog page.
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index e350d8485..30e454ac2 100644 --- a/modules/watchdog.module +++ b/modules/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)); } |