Commit 0294c555 authored by alexpott's avatar alexpott
Browse files

Issue #2009686 by aaronott: Replace theme() with drupal_render() in tracker module.

parent 3c420a6c
...@@ -74,11 +74,16 @@ function tracker_page($account = NULL, $set_title = FALSE) { ...@@ -74,11 +74,16 @@ function tracker_page($account = NULL, $set_title = FALSE) {
} }
} }
$mark_build = array(
'#theme' => 'mark',
'#type' => node_mark($node->nid, $node->changed),
);
$row = array( $row = array(
'type' => check_plain(node_get_type_label($node)), 'type' => check_plain(node_get_type_label($node)),
// Do not use $node->label(), because $node comes from the database. // Do not use $node->label(), because $node comes from the database.
'title' => array('data' => l($node->title, 'node/' . $node->nid) . ' ' . theme('mark', array('type' => node_mark($node->nid, $node->changed)))), 'title' => array('data' => l($node->title, 'node/' . $node->nid) . ' ' . drupal_render($mark_build)),
'author' => array('data' => theme('username', array('account' => $node))), 'author' => array('data' => array('#theme' => 'username', '#account' => $node)),
'replies' => array('class' => array('replies'), 'data' => $comments), 'replies' => array('class' => array('replies'), 'data' => $comments),
'last updated' => array('data' => t('!time ago', array('!time' => format_interval(REQUEST_TIME - $node->last_activity)))), 'last updated' => array('data' => t('!time ago', array('!time' => format_interval(REQUEST_TIME - $node->last_activity)))),
); );
......
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