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/include/category_recent_cats.inc.php

    r593 r606  
    6767 
    6868  $query = '
    69 SELECT id,file,tn_ext,storage_category_id
     69SELECT path,file,tn_ext
    7070  FROM '.IMAGES_TABLE.', '.IMAGE_CATEGORY_TABLE.'
    7171  WHERE category_id = '.$row['category_id'].'
     
    7676  LIMIT 0,1
    7777;';
    78   $subrow = mysql_fetch_array( pwg_query( $query ) );
     78  $subrow = mysql_fetch_array(pwg_query($query));
    7979
    80   $thumbnail_src = get_thumbnail_src($subrow['file'],
    81                                      $subrow['storage_category_id'],
    82                                      @$subrow['tn_ext']);
     80  $thumbnail_src = get_thumbnail_src($subrow['path'], @$subrow['tn_ext']);
    8381 
    8482  $url_link = PHPWG_ROOT_PATH.'category.php?cat='.$row['category_id'];
Note: See TracChangeset for help on using the changeset viewer.