Closed (fixed)
Project:
Weather
Version:
4.7.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Nov 2006 at 20:44 UTC
Updated:
28 Nov 2006 at 20:56 UTC
Javascrip and image urls are wrong when drupal is instaled on a subdirectory.
I made this change to solve the problem:
// set up final return array
if (variable_get('clean_url', 0)) {
// the site uses clean URLs, so we need to prepend a slash
$image['filename'] = '/';
}
$image['filename'] .= drupal_get_path('module', 'weather').'/images/'.$name.'.png';
with:
$image['filename'] = url(drupal_get_path('module', 'weather').'/images/'.$name.'.png');
(sorry, I do not know how this issue tracking system works)
thank you!
Comments
Comment #1
toddy commentedHi,
thanks for the bug report. I've fixed this, and I'll release an updated version of the module shortly.
Regards,
Tobias
Comment #2
toddy commentedThe new version is out.