summaryrefslogtreecommitdiff
path: root/modules/watchdog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-08-01 05:14:05 +0000
committerDries Buytaert <dries@buytaert.net>2005-08-01 05:14:05 +0000
commit7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4 (patch)
tree255aa1aab3de018eeb60d5756522e7726c7dbe10 /modules/watchdog.module
parent22479d876173f5e1704cbafabba667450ecf2512 (diff)
downloadbrdo-7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4.tar.gz
brdo-7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4.tar.bz2
- Patch #27737 by Gerhard: format_name($object) -> theme('username', $object).
Usernames can now be themed; eg. an icon/avatar could be added. TODO: update contributed modules + update the migration docs.
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r--modules/watchdog.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module
index 68f460c35..4793132b9 100644
--- a/modules/watchdog.module
+++ b/modules/watchdog.module
@@ -104,7 +104,7 @@ function watchdog_overview() {
t($watchdog->type),
format_date($watchdog->timestamp, 'small'),
truncate_utf8($watchdog->message, 64),
- format_name($watchdog),
+ theme('username', $watchdog),
$watchdog->link,
l(t('details'), "admin/logs/event/$watchdog->wid")
),
@@ -139,7 +139,7 @@ function watchdog_event($id) {
$output .= '<table border="1" cellpadding="2" cellspacing="2">';
$output .= ' <tr><th>'. t('Type') .'</th><td>' . t($watchdog->type) . '</td></tr>';
$output .= ' <tr><th>'. t('Date') .'</th><td>'. format_date($watchdog->timestamp, 'large') .'</td></tr>';
- $output .= ' <tr><th>'. t('User') .'</th><td>'. format_name($watchdog) .'</td></tr>';
+ $output .= ' <tr><th>'. t('User') .'</th><td>'. theme('username', $watchdog) .'</td></tr>';
$output .= ' <tr><th>'. t('Location') ."</th><td>". l($watchdog->location, $watchdog->location) ."</td></tr>";
$output .= ' <tr><th>'. t('Referrer') ."</th><td>". l($watchdog->referer, $watchdog->referer) ."</td></tr>";
$output .= ' <tr><th>'. t('Message') ."</th><td>$watchdog->message</td></tr>";