Ignore:
Timestamp:
Aug 26, 2011, 1:02:11 PM (13 years ago)
Author:
plg
Message:

feature 1729: rewrite function get_thumbnail_title to provide a complete tooltip
to the template file. It include the name of the photo, details such as number
of visits, number of comments, rating score, and the description.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_default.inc.php

    r11981 r11996  
    105105      );
    106106
     107  if (isset($nb_comments_of) )
     108  {
     109    $row['nb_comments'] = (int)@$nb_comments_of[$row['id']];
     110  }
     111
    107112  $tpl_var =
    108113    array(
     
    167172  $tpl_var['NAME'] = $name;
    168173
    169   if ( isset($nb_comments_of) )
     174  if (isset($row['nb_comments']))
    170175  {
    171     $tpl_var['NB_COMMENTS'] = (int)@$nb_comments_of[$row['id']];
     176    $tpl_var['NB_COMMENTS'] = $row['nb_comments'];
    172177  }
    173178
Note: See TracChangeset for help on using the changeset viewer.