diff options
author | David Rothstein <drothstein@gmail.com> | 2012-12-26 22:49:51 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-12-26 22:49:51 -0500 |
commit | dfed194c6393a496bceb69b83081a86c0196297a (patch) | |
tree | cb6be993d05dfb27d4c396b715e13ec73e4f1bf3 /modules/comment/comment.admin.inc | |
parent | 9edacf1adce95d8aca42180ef5b90f86c0dbfaa1 (diff) | |
download | brdo-dfed194c6393a496bceb69b83081a86c0196297a.tar.gz brdo-dfed194c6393a496bceb69b83081a86c0196297a.tar.bz2 |
Issue #1534674 by plach, slowflyer: Fixed Comment field language is completely broken.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r-- | modules/comment/comment.admin.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index 4f3d35071..43b53e27a 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -98,13 +98,14 @@ function comment_admin_overview($form, &$form_state, $arg) { // Remove the first node title from the node_titles array and attach to // the comment. $comment->node_title = array_shift($node_titles); + $comment_body = field_get_items('comment', $comment, 'comment_body'); $options[$comment->cid] = array( 'subject' => array( 'data' => array( '#type' => 'link', '#title' => $comment->subject, '#href' => 'comment/' . $comment->cid, - '#options' => array('attributes' => array('title' => truncate_utf8($comment->comment_body[LANGUAGE_NONE][0]['value'], 128)), 'fragment' => 'comment-' . $comment->cid), + '#options' => array('attributes' => array('title' => truncate_utf8($comment_body[0]['value'], 128)), 'fragment' => 'comment-' . $comment->cid), ), ), 'author' => theme('username', array('account' => $comment)), |