Changeset 1092 for trunk/include/calendar_monthly.class.php
- Timestamp:
- Mar 22, 2006, 2:01:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/calendar_monthly.class.php
r1090 r1092 225 225 $query.= ' 226 226 GROUP BY period 227 ORDER BY YEAR('.$this->date_field.') DESC ';227 ORDER BY YEAR('.$this->date_field.') DESC, MONTH('.$this->date_field.')'; 228 228 229 229 $result = pwg_query($query); … … 351 351 $row = mysql_fetch_array(pwg_query($query)); 352 352 $items[$day]['tn_path'] = get_thumbnail_src($row['path'], @$row['tn_ext']); 353 $items[$day]['tn_file'] = $row['file']; 353 $items[$day]['file'] = $row['file']; 354 $items[$day]['path'] = $row['path']; 355 $items[$day]['tn_ext'] = @$row['tn_ext']; 354 356 $items[$day]['width'] = $row['width']; 355 357 $items[$day]['height'] = $row['height']; … … 446 448 else 447 449 {// item not an image (tn is either mime type or an image) 448 $tn_size = @getimagesize($items[$day]['tn_path']); 450 $thumb = get_thumbnail_src( 451 $items[$day]['path'], @$items[$day]['tn_ext'], false 452 ); 453 $tn_size = @getimagesize($thumb); 449 454 } 450 455 $tn_width = $tn_size[0]; … … 549 554 array( 550 555 'IMAGE'=>$data['tn_path'], 551 'IMAGE_ALT'=>$data[' tn_file'],556 'IMAGE_ALT'=>$data['file'], 552 557 'IMAGE_TITLE'=>$thumbnail_title, 553 558 'U_IMG_LINK'=>$url
Note: See TracChangeset
for help on using the changeset viewer.