summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrel O\'Pry2006-12-31 08:48:29 (GMT)
committer Darrel O\'Pry2006-12-31 08:48:29 (GMT)
commit124df0a4db342b74eea1827404199c01b8221497 (patch)
tree6c70f7c9af30144464fe9c8fe04fa6bb4b4c0ce8
parentf8fa93fa8e34d174012fb138ab36216a0a1f04c8 (diff)
fixing busted loop in imagecache_image_flush
-rw-r--r--imagecache.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/imagecache.module b/imagecache.module
index fea79fb..bc224fc 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);
}
}