In modernizr.module in the dev version, if you try loading it from libraries with the name modernizr.min.js, you get a 404. That is because in this line:

$version_agnostic_path = file_exists($path .'/modernizr.min.js') ? $path : FALSE;

file_exists() finds the file, but then $version_agnostic_path is set to just $path, without the filename concatenated.

I'll submit a patch with a fix, it should look like this to properly load the file:

$version_agnostic_path = file_exists($path .'/modernizr.min.js') ? $path .'/modernizr.min.js' : FALSE;

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sarahjean’s picture

TravisCarden’s picture

Assigned: sarahjean » Unassigned
Status: Active » Needs review
FileSize
1.62 KB

Here's a backport of the patch against 6.x-1.0, so anyone can use this in a Drush make file or anything if they're running the latest stable release. (@sarahjean's patch can be committed right to the dev version.)

rupl’s picture

Thanks for reporting the issue!

I'll be honest, I haven't touched D6 in years. If you can get people to test this all the way up to RTBC I'll commit it.

sarahjean’s picture

Thanks, I know its not a priority with d8 about to come out!

nickfitz’s picture

This patch actually fixed a huge issue for me. I tested it and everything worked as expected. Thanks!

rupl’s picture

Hi nickfitz, since you tested the patch and confirmed it is working, could I ask that you set this as RTBC? I'll commit it and make a new release for your effort ;)

bryanbraun’s picture

Status: Needs review » Reviewed & tested by the community

I just tested this as well... both the patch from #1 on 6.x-1.x and the patch from #2 on 6.x-1.0. I can confirm that they both work as expected.

Happy to set this to RTBC on behalf of nickfitz. ;)

rupl’s picture

Status: Reviewed & tested by the community » Fixed

Committed to dev and tagged a new release!

https://drupal.org/node/2189043

sarahjean’s picture

Awesome, thanks for taking a look at it.

Status: Fixed » Closed (fixed)

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