Changeset 606 for trunk/comments.php


Ignore:
Timestamp:
Nov 17, 2004, 12:38:34 AM (19 years ago)
Author:
plg
Message:
  • images.path column added to reduce database access
  • function mass_inserts moved from admin/remote_sites.php to admin/include/function.php
  • function mass_inserts used in admin/update.php
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r593 r606  
    141141  // link to the full size picture
    142142  $query = '
    143 SELECT name,file,storage_category_id as cat_id,tn_ext
     143SELECT name,file,storage_category_id as cat_id,tn_ext,path
    144144  FROM '.IMAGES_TABLE.'
    145145  WHERE id = '.$row['image_id'].'
     
    167167  $name.= ' [ '.$subrow['file'].' ]';
    168168  // source of the thumbnail picture
    169   $thumbnail_src = get_thumbnail_src($subrow['file'],
    170                                      $subrow['cat_id'],
    171                                      @$subrow['tn_ext']);
     169  $thumbnail_src = get_thumbnail_src($subrow['path'], @$subrow['tn_ext']);
    172170  // link to the full size picture
    173171  $url = PHPWG_ROOT_PATH.'picture.php?cat='.$category_id;
Note: See TracChangeset for help on using the changeset viewer.