Commit edfdffb5 authored by Dries's avatar Dries

- Patch #747476 by andypost: image files are not flushed for all styles.

parent e1799e76
...@@ -362,9 +362,9 @@ function image_image_default_styles() { ...@@ -362,9 +362,9 @@ function image_image_default_styles() {
function image_path_flush($path) { function image_path_flush($path) {
$styles = image_styles(); $styles = image_styles();
foreach ($styles as $style) { foreach ($styles as $style) {
$path = image_style_path($style['name'], $path); $image_path = image_style_path($style['name'], $path);
if (file_exists($path)) { if (file_exists($image_path)) {
file_unmanaged_delete($path); file_unmanaged_delete($image_path);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment