Ignore:
Timestamp:
Jul 13, 2012, 3:26:50 PM (12 years ago)
Author:
patdenice
Message:

Compatible with piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/modules/LastComs/main.inc.php

    r12524 r16691  
    161161  $elements = array();
    162162  $query = '
    163 SELECT id, name, file, path, tn_ext
     163SELECT *
    164164  FROM '.IMAGES_TABLE.'
    165165  WHERE id IN ('.implode(',', $element_ids).')
     
    203203
    204204    // source of the thumbnail picture
    205     $thumbnail_src = get_thumbnail_url( $elements[$comment['image_id']] );
     205    $src_image = new SrcImage($elements[$comment['image_id']]);
    206206
    207207    // link to the full size picture
     
    217217      'ID' => $comment['comment_id'],
    218218      'U_PICTURE' => $url,
    219       'TN_SRC' => $thumbnail_src,
     219      'src_image' => $src_image,
    220220      'ALT' => $name,
    221221      'AUTHOR' => trigger_event('render_comment_author', $comment['author']),
     
    282282    array_push($block['comments'], $tpl_comment);
    283283  }
     284  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    284285}
    285286
Note: See TracChangeset for help on using the changeset viewer.