Ignore:
Timestamp:
Oct 10, 2011, 6:37:18 PM (13 years ago)
Author:
patdenice
Message:

Best rated module is now compatible with piwigo 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/modules/MostVisited/main.inc.php

    r9581 r12401  
    127127    }
    128128
    129     if ($conf['show_thumbnail_caption'])
    130     {// name of the picture
    131       if (isset($row['name']) and $row['name'] != '')
    132       {
    133         $name = $row['name'];
    134       }
    135       else
    136       {
    137         $name = str_replace('_', ' ', get_filename_wo_extension($row['file']));
    138       }
     129    if (isset($row['name']) and $row['name'] != '')
     130    {
     131      $name = $row['name'];
     132    }
     133    else
     134    {
     135      $name = str_replace('_', ' ', get_filename_wo_extension($row['file']));
     136    }
    139137
    140       if ( !$user['show_nb_hits'])
    141       {
    142         $name = '('.$row['hit'].') '.$name;
    143       }
     138    if ( !$user['show_nb_hits'])
     139    {
     140      $name = '('.$row['hit'].') '.$name;
     141    }
    144142
    145       $tpl_var['NAME'] = $name;
    146     }
     143    $tpl_var['NAME'] = $name;
    147144
    148145    if ( isset($nb_comments_of) )
Note: See TracChangeset for help on using the changeset viewer.