? .svn ? 446634_imagecache_dir_created_0.patch ? imagecache_ui_E_ALL_0.patch ? tests ? translations Index: imagecache.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v retrieving revision 1.112.2.5 diff -u -p -r1.112.2.5 imagecache.module --- imagecache.module 19 Aug 2009 20:59:07 -0000 1.112.2.5 +++ imagecache.module 3 May 2010 16:13:08 -0000 @@ -557,6 +557,14 @@ function imagecache_build_derivative($ac return FALSE; } + // file_check_directory() has an annoying habit of displaying "directory ... + // has been created" status messages. To avoid confusing visitors we clear + // out all the status messages for non-ImageCache admins. This might affect + // some other messages but errors and warnings should still be displayed. + if (!user_access('administer imagecache')) { + drupal_get_messages('status', TRUE); + } + // Simply copy the file if there are no actions. if (empty($actions)) { return file_copy($src, $dst, FILE_EXISTS_REPLACE);