X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Ftemplates_upgrade.php;h=a636145e67bec5eec6c86ac604ae8348b6153034;hp=1a69b68584b159af5e4a15d13fdf9aa49a3e3bea;hb=9d328be613bc25ef3f19f751bcf4de59343944c6;hpb=12376baf148afee289fbb53dd16ee2a0841d5290 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); } } }