Changeset 31176


Ignore:
Timestamp:
May 26, 2015, 3:11:57 PM (9 years ago)
Author:
plg
Message:

really disable the tooltip when requested in configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ThumbnailTooltip/include/class.inc.php

    r30271 r31176  
    3636       
    3737
    38         if ($params['display_name']==true) {
    39       foreach($tpl_var as $cle=>$valeur) {
     38    foreach($tpl_var as $cle=>$valeur) {
     39      if ($params['display_name']==true) {
    4040        $query = "
    4141                  SELECT name, hit, comment, author, rating_score, CONCAT(width, 'x', height) AS dimensions, filesize FROM ".IMAGES_TABLE."
     
    9292        $tpl_var[$cle]['TN_TITLE'] = $title;
    9393      }
     94      else
     95      {
     96        $tpl_var[$cle]['TN_TITLE'] = null;
     97      }
    9498    }
    9599    return $tpl_var;
Note: See TracChangeset for help on using the changeset viewer.