Commit d97d1aae authored by alexpott's avatar alexpott

Issue #2008990 by heddn, InternetDevels, giammi: Replace theme() with...

Issue #2008990 by heddn, InternetDevels, giammi: Replace theme() with drupal_render() in dblog module.
parent a5ae85b3
......@@ -97,6 +97,10 @@ function dblog_event($id) {
$message = t($dblog->message, unserialize($dblog->variables));
}
}
$username = array(
'#theme' => 'username',
'#account' => $dblog,
);
$rows = array(
array(
array('data' => t('Type'), 'header' => TRUE),
......@@ -108,7 +112,7 @@ function dblog_event($id) {
),
array(
array('data' => t('User'), 'header' => TRUE),
theme('username', array('account' => $dblog)),
drupal_render($username),
),
array(
array('data' => t('Location'), 'header' => TRUE),
......
......@@ -162,6 +162,10 @@ public function overview() {
$message = l($log_text, 'admin/reports/event/' . $dblog->wid, array('html' => TRUE));
}
}
$username = array(
'#theme' => 'username',
'#account' => $dblog,
);
$rows[] = array(
'data' => array(
// Cells.
......@@ -169,7 +173,7 @@ public function overview() {
t($dblog->type),
format_date($dblog->timestamp, 'short'),
$message,
theme('username', array('account' => $dblog)),
array('data' => $username),
filter_xss($dblog->link),
),
// Attributes for table row.
......
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