Needs review
Project:
SWFAddress
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2011 at 12:43 UTC
Updated:
19 Oct 2012 at 09:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
makschmiel commentedTry this:
Comment #2
sumanraj commentedThat did not worked, either.
I used following script instead:
which worked pretty well, but I don't think this is the good way to add javascript.
Comment #3
garphy#2 does the trick for me.
Patch attached. Reviews welcomed.
Comment #4
marabak commentedHello Garphy,
there's is an other solution : just put a slash before $module_path :
instead of :
file_create_url() is not encoding paths starting with a slash.
Comment #5
garphyMuch more elegant indeed, but is it handling cases where Drupal lives in a subfolder ?
Maybe if we combine #1 & #4 by appending the base path when required (not tested).
Comment #5.0
garphyreplaced script src='path' instead of <script>