While using this module in a place other than /modules/ (/sites/default/modules for example), the logs fill up with errors when trying to load imagepicker.css. This is due to two functions attempting to load the css files from the static path of modules/imagepicker/imagepicker.css. There are two places that need to be fixed:

imagepicker.module line 594
imagepicker.module line 611

The line:

drupal_add_css('modules/imagepicker/imagepicker.css');

should be replaced with:

drupal_add_css(drupal_get_path('module', 'imagepicker') . '/imagepicker.css');

I've tested this and it works. Thanks!

Comments

JacobSteelsmith’s picture

Status: Active » Closed (duplicate)

nevermind..previous patch fixed it. Didn't see that. Thanks.