summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-06-09 18:03:07 +0100
committerAlex Pott2013-06-09 18:03:07 +0100
commit0294c555d787eda9ce63fa2f3a6b1a96992bc152 (patch)
treed4bfe7cad40e2e4b73a91f6aba0b234e3eba2856
parent3c420a6cd415914a16a71c270ececc9797eb2b7e (diff)
Issue #2009686 by aaronott: Replace theme() with drupal_render() in tracker module.
-rw-r--r--core/modules/tracker/tracker.pages.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/modules/tracker/tracker.pages.inc b/core/modules/tracker/tracker.pages.inc
index be5302e..7d601e4 100644
--- a/core/modules/tracker/tracker.pages.inc
+++ b/core/modules/tracker/tracker.pages.inc
@@ -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(
'type' => check_plain(node_get_type_label($node)),
// 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)))),
- 'author' => array('data' => theme('username', array('account' => $node))),
+ 'title' => array('data' => l($node->title, 'node/' . $node->nid) . ' ' . drupal_render($mark_build)),
+ 'author' => array('data' => array('#theme' => 'username', '#account' => $node)),
'replies' => array('class' => array('replies'), 'data' => $comments),
'last updated' => array('data' => t('!time ago', array('!time' => format_interval(REQUEST_TIME - $node->last_activity)))),
);