Ignore:
Timestamp:
10/10/11 18:37:18 (8 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/Random/main.inc.php

    r9581 r12401  
    121121      ); 
    122122 
    123     if ($user['show_nb_hits']) 
     123  if ($user['show_nb_hits']) 
     124  { 
     125    $tpl_var['NB_HITS'] = $row['hit']; 
     126  } 
     127 
     128    if (isset($row['name']) and $row['name'] != '') 
    124129    { 
    125       $tpl_var['NB_HITS'] = $row['hit']; 
     130      $name = $row['name']; 
     131    } 
     132    else 
     133    { 
     134      $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 
    126135    } 
    127136 
    128     if ($conf['show_thumbnail_caption']) 
    129     {// name of the picture 
    130       if (isset($row['name']) and $row['name'] != '') 
    131       { 
    132         $name = $row['name']; 
    133       } 
    134       else 
    135       { 
    136         $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 
    137       } 
    138  
    139       $tpl_var['NAME'] = $name; 
    140     } 
     137    $tpl_var['NAME'] = $name; 
    141138 
    142139    if ( isset($nb_comments_of) ) 
Note: See TracChangeset for help on using the changeset viewer.