Posted by gioppy on August 23, 2009 at 6:51pm
Jump to:
| Project: | Extra Voting Forms |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi, i found a very small bug in the module.
The function path_to_theme in the .module file (on line 69) has broken my block pages when i have enabled an administration theme.
I solve changing the function:
$css_file_complete = path_to_theme() .'/widgets/'. $widget_dir .'/'. $css_file;
to this:
$css_file_complete = drupal_get_path('theme', variable_get('theme_default', NULL)).'/widgets/'.$widget_dir.'/'.$css_file;
and works very well!!!
If anyone encounter this problem i hope to be usefull!!!
After all, good module! ;)
Comments
#1
thank u very much!
#2
Thanks for solution!