diff --git imagecache.module imagecache.module index 5a44163..ca60e3b 100755 --- imagecache.module +++ imagecache.module @@ -548,6 +548,8 @@ function _imagecache_cache_set_cache_headers($fileinfo, &$headers) { * derivative is generated. NULL if the derivative is being generated. */ function imagecache_build_derivative($actions, $src, $dst) { + global $user; + // get the folder for the final location of this preset... $dir = dirname($dst); @@ -557,6 +559,11 @@ function imagecache_build_derivative($actions, $src, $dst) { return FALSE; } + // Flush success messages for all users except uid 1. + if ($user->uid != 1) { + drupal_get_messages(); + } + // Simply copy the file if there are no actions. if (empty($actions)) { return file_copy($src, $dst, FILE_EXISTS_REPLACE);