Wrong use of l function in theme_username

mcarrera - March 4, 2008 - 13:56
Project:Drupal
Version:7.x-dev
Component:theme system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

The functions uses l as

$output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.')));

while it should be

$output = l($name, 'user/'. $object->uid, array('attributes' => array('title' => t('View user profile.'))));

In order to correctly print the title attribute.

This happens twice in theme_username. I haven't checked other functions.

#1

dropcube - March 15, 2008 - 04:19
Version:6.1» 6.x-dev
Status:active» reviewed & tested by the community

Minor issue. The patch attached fixes it.

AttachmentSizeStatusTest resultOperations
theme_username-229817-1.patch662 bytesIgnoredNoneNone

#2

Gábor Hojtsy - March 21, 2008 - 22:06
Version:6.x-dev» 7.x-dev

Right, committed to Drupal 6. Moving to Drupal 7 for commit.

#3

JohnAlbin - May 2, 2008 - 15:38
Status:reviewed & tested by the community» fixed

This patch was duplicate of #227830: link attributes added to l() incorrectly.

#4

spatz4000 - May 2, 2008 - 18:57
Status:fixed» duplicate
 
 

Drupal is a registered trademark of Dries Buytaert.