/[drupal]/contributions/modules/taxonomy_image/taxonomy_image.module
ViewVC logotype

Diff of /contributions/modules/taxonomy_image/taxonomy_image.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.12.4.13.2.42, Tue Mar 17 14:38:16 2009 UTC revision 1.12.4.13.2.43, Thu Mar 19 13:44:46 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_image.module,v 1.12.4.13.2.41 2009/03/17 14:09:44 nancyw Exp $  // $Id: taxonomy_image.module,v 1.12.4.13.2.42 2009/03/17 14:38:16 nancyw Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 58  function taxonomy_image_display($tid, $t Line 58  function taxonomy_image_display($tid, $t
58        // Build the link title based on admin choice.        // Build the link title based on admin choice.
59        // Note: translation must be done here because the cache needs to be language-neutral.        // Note: translation must be done here because the cache needs to be language-neutral.
60        if ($current->description && !variable_get('taxonomy_image_link_title', 0)) {        if ($current->description && !variable_get('taxonomy_image_link_title', 0)) {
61          $current->title = taxonomy_image_tt("taxonomy:term:$term->tid:description", $current->description);          $current->title = taxonomy_image_tt("taxonomy:term:$current->tid:description", $current->description);
62        }        }
63        else {        else {
64          $current->title = taxonomy_image_tt("taxonomy:term:$term->tid:name", $current->name);          $current->title = taxonomy_image_tt("taxonomy:term:$current->tid:name", $current->name);
65        }        }
66        // Have to dump double quotes for attribute.        // Have to dump double quotes for attribute.
67        $current->title = htmlspecialchars(strip_tags($current->title), ENT_COMPAT);        $current->title = htmlspecialchars(strip_tags($current->title), ENT_COMPAT);

Legend:
Removed from v.1.12.4.13.2.42  
changed lines
  Added in v.1.12.4.13.2.43

  ViewVC Help
Powered by ViewVC 1.1.2