Download & Extend

javascript_aggregator_clear_cache() should not recurse subdirectories

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.

AttachmentSize
javascript_aggregator_clear_cache.patch748 bytes

Comments

#1

Status:active» fixed

Commited: http://drupal.org/cvs?commit=353752

Thanks!

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here