X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Ftemplates_upgrade.php;h=a636145e67bec5eec6c86ac604ae8348b6153034;hp=410790ad180f67e66b36771d7786958eb0e10a41;hb=9d328be613bc25ef3f19f751bcf4de59343944c6;hpb=9acc365249b5e630da6b5cdd23e3a8015f39ddc7 diff --git a/inc/templates_upgrade.php b/inc/templates_upgrade.php index 410790a..a636145 100644 --- a/inc/templates_upgrade.php +++ b/inc/templates_upgrade.php @@ -4,7 +4,7 @@ ?> - + @@ -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); } } }