From edfdffb532b73c5d5e1dfed9517150059675cfa6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 21 Mar 2010 20:36:10 +0000 Subject: - Patch #747476 by andypost: image files are not flushed for all styles. --- modules/image/image.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/image/image.module b/modules/image/image.module index 404be65f9..a1d7327f4 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -362,9 +362,9 @@ function image_image_default_styles() { function image_path_flush($path) { $styles = image_styles(); foreach ($styles as $style) { - $path = image_style_path($style['name'], $path); - if (file_exists($path)) { - file_unmanaged_delete($path); + $image_path = image_style_path($style['name'], $path); + if (file_exists($image_path)) { + file_unmanaged_delete($image_path); } } } -- cgit v1.2.3