<em> html displayed around new replies in the Replies column

friedchuckles - April 11, 2007 - 16:39
Project:Extended Tracker
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The <em> html tags are showing in the Replies column around the number of new replies.

This is because the html is inserted before the link is created and l() is automatically converting the htmltoentities. To fix this tell l() that there is html in the link.

Change:
$comments .= l(t('%num new', array('%num' => $new)), "node/$node->nid", NULL, NULL, 'new');

TO:
$comments .= l(t('%num new', array('%num' => $new)), "node/$node->nid", NULL, NULL, 'new', FALSE, TRUE);

The last TRUE does the trick.

See http://api.drupal.org/api/5/function/l

#1

kbahey - April 13, 2007 - 20:08
Status:active» fixed

There is a cleaner solution. Using @ instead of %.

Wait for 12 hours from the time of this commit, and download the new tarball and give it a spin.

#2

Anonymous - April 27, 2007 - 20:19
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.