diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-21 20:36:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-21 20:36:10 +0000 |
commit | edfdffb532b73c5d5e1dfed9517150059675cfa6 (patch) | |
tree | 278db024e18d114bb3f1c14aa7a9b9fb451f6a23 /modules | |
parent | e1799e761b909775da0141e70e06e351d31bf362 (diff) | |
download | brdo-edfdffb532b73c5d5e1dfed9517150059675cfa6.tar.gz brdo-edfdffb532b73c5d5e1dfed9517150059675cfa6.tar.bz2 |
- Patch #747476 by andypost: image files are not flushed for all styles.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/image/image.module | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } } |