[-] BO: Fix warning when image is uploaded with PHP < 5.3 #PSCFV-7425
This commit is contained in:
1 parent
a97843353b
commit
3f8e52d3f8
1 file changed
+3
@@ -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))
|
||||||
|
|||||||
Reference in new issue
Block a user