Links attributes are not reflected on bottom node links

quiron - August 11, 2008 - 23:37
Project:Amor Azul
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

Hi all,

I'm using Amor Azul in drupal 6.x with the module quote. I found that at the end of a page or blog entry, and in general in the nodes there are the links for post coments that works really good. But trying out the quote module the quote link at the end of the node links also to normal comment link.

I think that its caused by the phptemplate_links() function in template.php that returs the links that are printed by node.tpl.php. The problem is the use o l() function that I think isn't correct http://api.drupal.org/api/function/l/6

I changed the line: $output .= l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment'], FALSE, $html);
to: $output .= l($link['title'], $link['href'], array('attributes' => $link['attributes'], 'query' => $link['query'], 'fragment' => $link['fragment'], 'alias' => FALSE, 'html' => $html));

and it seems to work,

I summit the patch (is my first patch, maybe it is not correct created)

AttachmentSize
Amor_Azul_theme_link_options_corrected_template.php_.patch752 bytes

#1

cmswebsiteservices - November 10, 2008 - 09:29
Status:needs review» closed
 
 

Drupal is a registered trademark of Dries Buytaert.