This commit is contained in:
danpros 2024-07-15 18:23:17 +07:00
commit c33f462c06
2 changed files with 10 additions and 0 deletions

View file

@ -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)) {