From 84c8ba504f8f675ff666d804d3988169e4345d15 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 14 Aug 2004 06:21:53 +0000 Subject: - Patch #9975 by TDobes: fixes two consistency problems with watchdog entries: * Adds missing quotes around the username in "session closed" watchdog messages from user.module (session opened has quotes, but session closed does not). * Changed "view detals" after watchdog entries to "details". --- modules/user.module | 2 +- modules/user/user.module | 2 +- modules/watchdog.module | 2 +- modules/watchdog/watchdog.module | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index d9b5ff76e..38d199d3e 100644 --- a/modules/user.module +++ b/modules/user.module @@ -875,7 +875,7 @@ function user_logout() { global $user; if ($user->uid) { - watchdog('user', t('session closed for %user.', array('%user' => $user->name))); + watchdog('user', t('session closed for "%user".', array('%user' => $user->name))); // Destroy the current session: session_destroy(); diff --git a/modules/user/user.module b/modules/user/user.module index d9b5ff76e..38d199d3e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -875,7 +875,7 @@ function user_logout() { global $user; if ($user->uid) { - watchdog('user', t('session closed for %user.', array('%user' => $user->name))); + watchdog('user', t('session closed for "%user".', array('%user' => $user->name))); // Destroy the current session: session_destroy(); diff --git a/modules/watchdog.module b/modules/watchdog.module index f8c0dcc2f..1a2227005 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -101,7 +101,7 @@ function watchdog_overview($type = '') { array('data' => truncate_utf8(strip_tags($watchdog->message), 64), 'class' => "watchdog-$watchdog->type"), array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"), array('data' => $watchdog->link, 'class' => "watchdog-$watchdog->type"), - array('data' => l(t('view details'), "admin/logs/view/$watchdog->wid"), 'class' => "watchdog-$watchdog->type") + array('data' => l(t('details'), "admin/logs/view/$watchdog->wid"), 'class' => "watchdog-$watchdog->type") ); } diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index f8c0dcc2f..1a2227005 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -101,7 +101,7 @@ function watchdog_overview($type = '') { array('data' => truncate_utf8(strip_tags($watchdog->message), 64), 'class' => "watchdog-$watchdog->type"), array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"), array('data' => $watchdog->link, 'class' => "watchdog-$watchdog->type"), - array('data' => l(t('view details'), "admin/logs/view/$watchdog->wid"), 'class' => "watchdog-$watchdog->type") + array('data' => l(t('details'), "admin/logs/view/$watchdog->wid"), 'class' => "watchdog-$watchdog->type") ); } -- cgit v1.2.3