// Merge with revision 7841
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7844 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -538,6 +538,8 @@ class ImageCore extends ObjectModel
|
||||
if (!$image || $image->id !== (int)$matches[2])
|
||||
$image = new Image((int)$matches[2]);
|
||||
|
||||
if (Validate::isLoadedObject($image))
|
||||
{
|
||||
// create the new folder if it does not exist
|
||||
if (!$image->createImgFolder())
|
||||
return false;
|
||||
@@ -549,6 +551,7 @@ class ImageCore extends ObjectModel
|
||||
if (!@rename(_PS_PROD_IMG_DIR_.$file, $new_path) || !file_exists($new_path))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if ((int)$max_execution_time != 0 && (time() - $start_time > (int)$max_execution_time - 4))
|
||||
return 'timeout';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user