Changeset 12930 for trunk/comments.php
- Timestamp:
- Jan 20, 2012, 6:36:58 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r12922 r12930 117 117 $category_ids = array(-1); 118 118 } 119 119 120 120 $page['where_clauses'][] = 121 121 'category_id IN ('.implode(',', $category_ids).')'; … … 414 414 $elements = array(); 415 415 $query = ' 416 SELECT id, name, file, path, representative_ext416 SELECT * 417 417 FROM '.IMAGES_TABLE.' 418 418 WHERE id IN ('.implode(',', $element_ids).') … … 456 456 457 457 // source of the thumbnail picture 458 $ thumbnail_src = DerivativeImage::thumb_url( $elements[$comment['image_id']]);458 $src_image = new SrcImage($elements[$comment['image_id']]); 459 459 460 460 // link to the full size picture … … 470 470 'ID' => $comment['comment_id'], 471 471 'U_PICTURE' => $url, 472 ' TN_SRC' => $thumbnail_src,472 'src_image' => $src_image, 473 473 'ALT' => $name, 474 474 'AUTHOR' => trigger_event('render_comment_author', $comment['author']), … … 510 510 if (isset($edit_comment) and ($comment['comment_id'] == $edit_comment)) 511 511 { 512 513 514 515 516 512 $tpl_comment['IN_EDIT'] = true; 513 $key = get_ephemeral_key(2, $comment['image_id']); 514 $tpl_comment['KEY'] = $key; 515 $tpl_comment['IMAGE_ID'] = $comment['image_id']; 516 $tpl_comment['CONTENT'] = $comment['content']; 517 517 } 518 518 } … … 535 535 } 536 536 537 $derivative_params = trigger_event('get_comments_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) ); 538 $template->assign( 'derivative_params', $derivative_params ); 539 537 540 // include menubar 538 541 $themeconf = $template->get_template_vars('themeconf');
Note: See TracChangeset
for help on using the changeset viewer.