diff --git a/imagecache.module b/imagecache.module index fea79fb93d85fcf425d542cd95e76b28d44d6985..bc224fc6b314cb1096377bd889dac8252af4b74a 100644 --- a/imagecache.module +++ b/imagecache.module @@ -603,7 +603,7 @@ function theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes function imagecache_image_flush($path) { $presets = _imagecache_get_presets(); foreach($presets as $presetid => $presetname) { - $path = file_directory_path() .'/imagecache/'. $presetname .'/'. $path; - file_delete($path); + $ipath = file_directory_path() .'/imagecache/'. $presetname .'/'. $path; + file_delete($ipath); } }