[-] BO: Fix warning when image is uploaded with PHP < 5.3 #PSCFV-7425

This commit is contained in:
Rémi Gaillard committed 2013-01-29 11:53:53 +01:00
1 parent a97843353b
commit 3f8e52d3f8
1 file changed
+3
+3
View File
@@ -119,6 +119,9 @@ class ImageManagerCore
*/ */
public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false) public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false)
{ {
if (PHP_VERSION_ID < 50300)
clearstatcache();
else
clearstatcache(true, $src_file); clearstatcache(true, $src_file);
if (!file_exists($src_file) || !filesize($src_file)) if (!file_exists($src_file) || !filesize($src_file))