mirror of
https://github.com/danpros/htmly.git
synced 2026-04-23 14:06:23 +05:30
Check GD
This commit is contained in:
parent
db3ecd968a
commit
c33f462c06
2 changed files with 10 additions and 0 deletions
|
|
@ -627,6 +627,10 @@ function flash($key, $msg = null, $now = false)
|
|||
|
||||
function create_thumb($src, $desired_width = null, $desired_height = null) {
|
||||
|
||||
if (!extension_loaded('gd')) {
|
||||
return $src;
|
||||
}
|
||||
|
||||
$dir = 'content/images/thumbnails';
|
||||
|
||||
if (!is_dir($dir)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue