Skip to content

Commit efd699c

Browse files
committed
Images / Files - Image Editor - wrong path
Fixed: Pages Image Editor - wrong path. #29
1 parent ff71029 commit efd699c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • ForgeIgniter/modules/images/views/admin

ForgeIgniter/modules/images/views/admin/popup.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
$imagePath = $image['src'];
2020
$imageThumbPath = $thumb['src'];
2121
?>
22-
<?php echo ($thumb = display_image(base_url(), $imageThumbPath, $data['imageName'], 100, 'class="pic" ')) ? $thumb : display_image(base_url(), $imagePath, $data['imageName'], 100, 'class="pic"'); ?>
22+
<?php
23+
// display image - path, alt, size, extras else $nopic
24+
echo ($thumb = display_image($imageThumbPath, $data['imageName'], 180, 'style="display: block;margin: 0 auto 5px;" ')) ? $thumb : display_image(base_url(), $imagePath, $data['imageName'], 100, 'class="pic #2"');
25+
?>
2326

2427
<label for="image">Image:</label>
2528
<div class="uploadfile">

0 commit comments

Comments
 (0)