Closed (duplicate)
Project:
Image Picker
Version:
5.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2008 at 20:59 UTC
Updated:
11 Mar 2008 at 21:03 UTC
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
Comment #1
JacobSteelsmith commentednevermind..previous patch fixed it. Didn't see that. Thanks.