diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-08-14 06:21:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-08-14 06:21:53 +0000 |
commit | 84c8ba504f8f675ff666d804d3988169e4345d15 (patch) | |
tree | 484c4c3eed3a7d675e498c2a4bbeaea945bf3616 /modules | |
parent | 7a885c8ffaa37fe767088e61a27df7972e0c4e78 (diff) | |
download | brdo-84c8ba504f8f675ff666d804d3988169e4345d15.tar.gz brdo-84c8ba504f8f675ff666d804d3988169e4345d15.tar.bz2 |
- 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".
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 | ||||
-rw-r--r-- | modules/watchdog.module | 2 | ||||
-rw-r--r-- | modules/watchdog/watchdog.module | 2 |
4 files changed, 4 insertions, 4 deletions
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") ); } |