Ignore:
Timestamp:
Oct 23, 2004, 7:56:46 PM (19 years ago)
Author:
z0rglub
Message:
  • refactoring of comments.php
  • creation of function get_thumbnail_src used everywhere a thumbnail must be displayed
  • creation of function parse_comment_content (used in comments.php and picture.php)
  • concerning undefined index on arrays retrieved in database, instead of testing possibly unset values, use of @ operator (smarter...)
  • add pre tag in default.css stylesheet for debugging purpose (need to have left aligned text)
File:
1 edited

Legend:

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

    r470 r579  
    8787  $image_row    = mysql_fetch_array($image_result);
    8888
    89   $file = get_filename_wo_extension($image_row['file']);
    90 
    91   // creating links for thumbnail and associated category
    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   }
     89  $thumbnail_link = get_thumbnail_src($image_row['file'],
     90                                      $image_row['storage_category_id'],
     91                                      @$image_row['tn_ext']);
    10392
    10493  $thumbnail_title = $lang['hint_category'];
Note: See TracChangeset for help on using the changeset viewer.