Skip to content

Commit

Permalink
Fix issue #193
Browse files Browse the repository at this point in the history
  • Loading branch information
remrem authored and BoboTiG committed Jan 24, 2017
1 parent c9acd99 commit e3c597a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions admin/fichiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,18 @@ function display_pictures_list($images)
if (!isset($im['bt_dim_w'])) {
list($im['bt_dim_w'], $im['bt_dim_h']) = getimagesize(DIR_IMAGES.$im['bt_filename']);
}
$thumbnail = chemin_thb_img_test(URL_IMAGES.$im['bt_path'].'/'.$im['bt_filename']);

$img_path_src = $im['bt_path'].'/'.$im['bt_filename'];
$thumb_name = chemin_thb_img($img_path_src);
$thumbnail = (is_file(DIR_IMAGES.$thumb_name)) ? $thumb_name : $img_path_src;

$out .= '{
index: '.(int)$idx.',
filename: [
"'.URL_IMAGES.$im['bt_path'].'/'.$im['bt_filename'].'",
"'.URL_IMAGES.$img_path_src.'",
"'.$im['bt_filename'].'",
"'.$thumbnail.'",
"'.URL_IMAGES.$im['bt_path'].'/'.$im['bt_filename'].'"
"'.URL_IMAGES.$thumbnail.'",
"'.URL_IMAGES.$img_path_src.'"
],
id: '.(int)$im['bt_id'].',
desc: "'.addslashes(preg_replace('#(\n|\r|\n\r)#', '', nl2br($im['bt_content']))).'",
Expand Down

0 comments on commit e3c597a

Please sign in to comment.