From 70eb349d88a73263b9bc49f1f9a2ea394dff35d2 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 24 Nov 2005 19:50:50 +0000
Subject: [PATCH] - Patch #38667 by Neil: removed a column from the table on
 the watchdog page.

---
 modules/watchdog.module          | 7 +++----
 modules/watchdog/watchdog.module | 7 +++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/modules/watchdog.module b/modules/watchdog.module
index e350d84855dd..30e454ac2db7 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));
   }
 
 
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index e350d84855dd..30e454ac2db7 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));
   }
 
 
-- 
GitLab