Ignore:
Timestamp:
Aug 5, 2004, 7:38:14 PM (20 years ago)
Author:
z0rglub
Message:

non picture files management

File:
1 edited

Legend:

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

    r456 r470  
    8686  }
    8787  // thumbnail url
    88   $thumbnail_url = $cat_directory;
    89   $thumbnail_url.= 'thumbnail/'.$conf['prefix_thumbnail'];
    90   $thumbnail_url.= $file.'.'.$row['tn_ext'];
     88  if (isset($row['tn_ext']) and $row['tn_ext'] != '')
     89  {
     90    $thumbnail_url = $cat_directory;
     91    $thumbnail_url.= 'thumbnail/'.$conf['prefix_thumbnail'];
     92    $thumbnail_url.= $file.'.'.$row['tn_ext'];
     93  }
     94  else
     95  {
     96    $thumbnail_url = './template/'.$user['template'].'/mimetypes/';
     97    $thumbnail_url.= strtolower(get_extension($row['file'])).'.png';
     98  }
     99 
    91100  // message in title for the thumbnail
    92101  $thumbnail_title = $row['file'];
Note: See TracChangeset for help on using the changeset viewer.