- 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".4.5.x
parent
7a885c8ffa
commit
84c8ba504f
|
|
@ -875,7 +875,7 @@ function user_logout() {
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
if ($user->uid) {
|
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:
|
// Destroy the current session:
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
|
||||||
|
|
@ -875,7 +875,7 @@ function user_logout() {
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
if ($user->uid) {
|
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:
|
// Destroy the current session:
|
||||||
session_destroy();
|
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' => truncate_utf8(strip_tags($watchdog->message), 64), 'class' => "watchdog-$watchdog->type"),
|
||||||
array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"),
|
array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"),
|
||||||
array('data' => $watchdog->link, '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' => truncate_utf8(strip_tags($watchdog->message), 64), 'class' => "watchdog-$watchdog->type"),
|
||||||
array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"),
|
array('data' => format_name($watchdog), 'class' => "watchdog-$watchdog->type"),
|
||||||
array('data' => $watchdog->link, '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")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue