Changeset 579 for trunk/include/category_recent_cats.inc.php
- Timestamp:
- Oct 23, 2004, 7:56:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_recent_cats.inc.php
r470 r579 78 78 $subrow = mysql_fetch_array( mysql_query( $query ) ); 79 79 80 $file = get_filename_wo_extension( $subrow['file'] ); 81 82 // creating links for thumbnail and associated category 83 if (isset($subrow['tn_ext']) and $subrow['tn_ext'] != '') 84 { 85 $thumbnail_link = get_complete_dir($subrow['storage_category_id']); 86 $thumbnail_link.= 'thumbnail/'.$conf['prefix_thumbnail']; 87 $thumbnail_link.= $file.'.'.$subrow['tn_ext']; 88 } 89 else 90 { 91 $thumbnail_link = './template/'.$user['template'].'/mimetypes/'; 92 $thumbnail_link.= strtolower(get_extension($subrow['file'])).'.png'; 93 } 80 $thumbnail_src = get_thumbnail_src($subrow['file'], 81 $subrow['storage_category_id'], 82 @$subrow['tn_ext']); 94 83 95 84 $url_link = PHPWG_ROOT_PATH.'category.php?cat='.$row['category_id']; … … 98 87 'thumbnails.line.thumbnail', 99 88 array( 100 'IMAGE' => $thumbnail_ link,89 'IMAGE' => $thumbnail_src, 101 90 'IMAGE_ALT' => $subrow['file'], 102 91 'IMAGE_TITLE' => $lang['hint_category'],
Note: See TracChangeset
for help on using the changeset viewer.