Commit 84c8ba50 authored by Dries's avatar Dries

- 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".
parent 7a885c8f
......@@ -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();
......
......@@ -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();
......
......@@ -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")
);
}
......
......@@ -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")
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment