diff --git a/core/modules/dblog/dblog.admin.inc b/core/modules/dblog/dblog.admin.inc
index cf744b0..90ecf64 100644
--- a/core/modules/dblog/dblog.admin.inc
+++ b/core/modules/dblog/dblog.admin.inc
@@ -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),
diff --git a/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php b/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php
index dcc0d6a..bc22771 100644
--- a/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php
+++ b/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php
@@ -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)),
+          drupal_render($username),
           filter_xss($dblog->link),
         ),
         // Attributes for table row.
