X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=inc%2Ftemplates_upgrade.php;h=a636145e67bec5eec6c86ac604ae8348b6153034;hb=3b38ca36fc18d34999073625a9c66dc2f05747a3;hp=1a69b68584b159af5e4a15d13fdf9aa49a3e3bea;hpb=3c9d0dbaecbd62e5933096270da3e970371d67ec;p=syp.git diff --git a/inc/templates_upgrade.php b/inc/templates_upgrade.php index 1a69b68..a636145 100644 --- a/inc/templates_upgrade.php +++ b/inc/templates_upgrade.php @@ -20,11 +20,7 @@ $thumbfilename = getthumbsdir () . "/mini_" . $feature->imgpath; if ((file_exists ($imgfilename)) && (!(file_exists ($thumbfilename)))) { - try { - create_thumbnail ($imgfilename, $thumbfilename); - } catch (Exception $e) { - return false; - } + create_thumbnail_or_copy ($imgfilename, $thumbfilename); } } }