Add check for gd extension
This commit is contained in:
@@ -9,9 +9,11 @@
|
|||||||
<ul class="task-show-images">
|
<ul class="task-show-images">
|
||||||
<?php foreach ($images as $file): ?>
|
<?php foreach ($images as $file): ?>
|
||||||
<li>
|
<li>
|
||||||
|
<?php if (function_exists('imagecreatetruecolor')): ?>
|
||||||
<div class="img_container">
|
<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']) ?>"/>
|
<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>
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
<p>
|
<p>
|
||||||
<?= $this->e($file['name']) ?>
|
<?= $this->e($file['name']) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"require" : {
|
"require" : {
|
||||||
"php": ">=5.3",
|
"php": ">=5.3",
|
||||||
"ext-mbstring" : "*",
|
"ext-mbstring" : "*",
|
||||||
|
"ext-gd": "*",
|
||||||
"fguillot/simple-validator" : "dev-master",
|
"fguillot/simple-validator" : "dev-master",
|
||||||
"swiftmailer/swiftmailer" : "@stable",
|
"swiftmailer/swiftmailer" : "@stable",
|
||||||
"fguillot/json-rpc" : "0.0.1",
|
"fguillot/json-rpc" : "0.0.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user