diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-06 17:52:51 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-06 17:52:51 -0400 |
commit | b89a4ac33f53677f18d641d73a97629f340fca7e (patch) | |
tree | 26c8a47ca5ce801ed3a352f3c4c10ba5881afaf5 /app/Template | |
parent | e3b1dbee2b109fd93e93efb298505be68c846dd7 (diff) |
Add check for gd extension
Diffstat (limited to 'app/Template')
-rw-r--r-- | app/Template/file/show.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Template/file/show.php b/app/Template/file/show.php index b181ab54..bfed94a5 100644 --- a/app/Template/file/show.php +++ b/app/Template/file/show.php @@ -4,14 +4,16 @@ <div class="page-header"> <h2><?= t('Attachments') ?></h2> </div> - <?php if (!empty($images)): ?> + <?php if (! empty($images)): ?> <h3><?= t('Images') ?></h3> <ul class="task-show-images"> <?php foreach ($images as $file): ?> <li> + <?php if (function_exists('imagecreatetruecolor')): ?> <div class="img_container"> <img src="<?= $this->u('file', 'thumbnail', array('width' => 250, 'file_id' => $file['id'], 'project_id' => $task['project_id'], 'task_id' => $file['task_id'])) ?>" alt="<?= $this->e($file['name']) ?>"/> </div> + <?php endif ?> <p> <?= $this->e($file['name']) ?> </p> |