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_subcats.inc.php

    r440 r470  
    9090
    9191  // creating links for thumbnail and associated category
    92   $thumbnail_link = get_complete_dir($image_row['storage_category_id']);
    93   $thumbnail_link.= 'thumbnail/'.$conf['prefix_thumbnail'];
    94   $thumbnail_link.= $file.'.'.$image_row['tn_ext'];
     92  if (isset($image_row['tn_ext']) and $image_row['tn_ext'] != '')
     93  {
     94    $thumbnail_link = get_complete_dir($image_row['storage_category_id']);
     95    $thumbnail_link.= 'thumbnail/'.$conf['prefix_thumbnail'];
     96    $thumbnail_link.= $file.'.'.$image_row['tn_ext'];
     97  }
     98  else
     99  {
     100    $thumbnail_link = './template/'.$user['template'].'/mimetypes/';
     101    $thumbnail_link.= strtolower(get_extension($image_row['file'])).'.png';
     102  }
    95103
    96104  $thumbnail_title = $lang['hint_category'];
Note: See TracChangeset for help on using the changeset viewer.