Skip to content
Snippets Groups Projects
Commit 680dae6e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #772836 by Jacine: recent comments block HTML clean-up.

parent 19a45ce5
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -576,7 +576,7 @@ function theme_comment_block() { ...@@ -576,7 +576,7 @@ function theme_comment_block() {
$items = array(); $items = array();
$number = variable_get('comment_block_count', 10); $number = variable_get('comment_block_count', 10);
foreach (comment_get_recent($number) as $comment) { foreach (comment_get_recent($number) as $comment) {
$items[] = l($comment->subject, 'comment/' . $comment->cid, array('fragment' => 'comment-' . $comment->cid)) . '<br />' . t('@time ago', array('@time' => format_interval(REQUEST_TIME - $comment->changed))); $items[] = l($comment->subject, 'comment/' . $comment->cid, array('fragment' => 'comment-' . $comment->cid)) .'<span>'. t('@time ago', array('@time' => format_interval(REQUEST_TIME - $comment->changed))) .'</span>';
} }
if ($items) { if ($items) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment