em tags in title attributes of links in the block

anoopjohn - February 16, 2008 - 19:32
Project:Taxonomy Block
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The links come up with a title attribute as
title="view <em>Post Title</em> in full"
The em in the title attribute does not make sense. This was because of an error in the theme_taxonomy_block_list_item function. I have corrected the code and am posting it here. The only change is in the %variable in the t function which was changed to a @variable.

/**
* Format a single item for a list.
*
* @ingroup themeable
*/
function theme_taxonomy_block_list_item($node, $teaser) {
$output = '

  • '. l($node->title, 'node/'. $node->nid, array('title' => t('view - @title - in full', array('@title' => $node->title))));
    if ($teaser) {
    $output .= '
    '. $teaser;
    }
    $output .= '
  • ';

    return $output;
    }

    #1

    drupal-id.com - June 24, 2009 - 11:15
    Status:reviewed & tested by the community» closed

    Upgrade to 6.x version. Thanks.

     
     

    Drupal is a registered trademark of Dries Buytaert.