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

Diff of /contributions/modules/taxonomy_browser/taxonomy_browser.module

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

revision 1.19.2.11.2.16, Tue Jun 10 18:30:05 2008 UTC revision 1.19.2.11.2.17, Wed Jun 11 18:21:02 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_browser.module,v 1.19.2.11.2.15 2008/06/10 16:53:16 nancyw Exp $  // $Id: taxonomy_browser.module,v 1.19.2.11.2.16 2008/06/10 18:30:05 nancyw Exp $
3  // Original by Moshe Weitzman (weitzmna@tejasa.com)  // Original by Moshe Weitzman (weitzmna@tejasa.com)
4    
5  /**  /**
# Line 353  function taxonomy_browser_form() { Line 353  function taxonomy_browser_form() {
353            $count = taxonomy_term_count_nodes($term->tid);            $count = taxonomy_term_count_nodes($term->tid);
354  //          $count = db_result(db_query('SELECT COUNT(nid) FROM {term_node} WHERE tid=%d', $term->tid));  //          $count = db_result(db_query('SELECT COUNT(nid) FROM {term_node} WHERE tid=%d', $term->tid));
355            if ($count > 0 || $show_unused) {            if ($count > 0 || $show_unused) {
356              $opt_string = htmlspecialchars_decode(check_plain($term->name)) .' ('. $count .')';              $opt_string = htmlspecialchars_decode(check_plain($term->name), ENT_QUOTES) .' ('. $count .')';
357            }            }
358          }          }
359          else {          else {
360            $opt_string = htmlspecialchars_decode(check_plain($term->name));            $opt_string = htmlspecialchars_decode(check_plain($term->name), ENT_QUOTES);
361          }          }
362          if ($opt_string) {          if ($opt_string) {
363            $term_opts[$term->tid] = str_repeat('-', $term->depth) . $opt_string;            $term_opts[$term->tid] = str_repeat('-', $term->depth) . $opt_string;

Legend:
Removed from v.1.19.2.11.2.16  
changed lines
  Added in v.1.19.2.11.2.17

  ViewVC Help
Powered by ViewVC 1.1.2