Posted by Hidehisa on January 9, 2010 at 7:44pm
3 followers
Jump to:
| Project: | Javascript Aggregator |
| Version: | 5.x-1.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
javascript_aggregator_clear_cache() calls file_scan_directory() with $recurse=TRUE, but it should be FALSE.
I had served js libraries commonly used sitewide at files/js/ .
After started using javascript_aggregator, one day I hit "clear the javascript cache." and boom! all my own js libraries got deleted!
As javascript_aggregator_cache() does not create any subdirectories, file_scan_directory() should be called with $recurse=FALSE.
| Attachment | Size |
|---|---|
| javascript_aggregator_clear_cache.patch | 748 bytes |
Comments
#1
Commited: http://drupal.org/cvs?commit=353752
Thanks!
#2
Automatically closed -- issue fixed for 2 weeks with no activity.