Ignore:
Timestamp:
Jan 5, 2012, 11:06:21 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize - improved picture.php display (original...) + code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r12820 r12855  
    201201    $files[] = get_element_path($row);
    202202
    203     if (!empty($row['tn_ext']))
    204     {
    205       $files[] = get_thumbnail_path($row);
    206     }
    207    
    208     if (!empty($row['has_high']) and get_boolean($row['has_high']))
    209     {
    210       $files[] = get_high_path($row);
    211     }
    212    
     203   
    213204    if (!empty($row['representative_ext']))
    214205    {
    215206      $pi = pathinfo($row['path']);
    216207      $file_wo_ext = get_filename_wo_extension($pi['basename']);
    217       $files[] = PHPWG_ROOT_PATH.$pi['dirname'].'/pwg_representative/'.$file_wo_ext.'.'.$row['representative_ext'];
     208      $files[] = original_to_representative( $files[0], $row['representative_ext']);
    218209    }
    219210
Note: See TracChangeset for help on using the changeset viewer.