diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-01-05 22:06:21 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-01-05 22:06:21 +0000 |
commit | 34717c1391166b847e4236cb3e519dfd7b0cbbd1 (patch) | |
tree | de9b7c278e78bcef1214d482cd292e9092e3a257 /admin/include/functions.php | |
parent | e64ab974df242b25ade46d9795294ae859060355 (diff) |
feature 2548 multisize - improved picture.php display (original...) + code cleanup
git-svn-id: http://piwigo.org/svn/trunk@12855 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 0669c8d6d..59e59e5c2 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -200,21 +200,12 @@ SELECT $files = array(); $files[] = get_element_path($row); - if (!empty($row['tn_ext'])) - { - $files[] = get_thumbnail_path($row); - } - - if (!empty($row['has_high']) and get_boolean($row['has_high'])) - { - $files[] = get_high_path($row); - } - + if (!empty($row['representative_ext'])) { $pi = pathinfo($row['path']); $file_wo_ext = get_filename_wo_extension($pi['basename']); - $files[] = PHPWG_ROOT_PATH.$pi['dirname'].'/pwg_representative/'.$file_wo_ext.'.'.$row['representative_ext']; + $files[] = original_to_representative( $files[0], $row['representative_ext']); } $ok = true; |