When adding its stuff to $closure, the path to preload the supernav images is missing supernav_dir + "search-icon.gif" (see line 1300 in supernav.module), where supernav_dir is the path to the module directory. But the images are located in supernav_dir + '/images'. So this preload attempt results in lots of "Page not found" warnings in Watchdog.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | closure-path.2.patch | 1.42 KB | ugerhard |
| #3 | closure-path.patch | 1.41 KB | ugerhard |
Comments
Comment #1
ugerhard commentedArgl, sorry, "the path to preload the supernav images is missing" should be "the path to preload the supernav images is".
Comment #2
ugerhard commentedAnother observation: there should probably be a call to
base_path()in there as well for installations that are not in a root directory. This affects line 1289 in supernav.module, too, I think:<script type="text/javascript" src="' . drupal_get_path('module','supernav') . '/jquery.shortkeys.js"></script>.Comment #3
ugerhard commentedHere's a patch against the DRUPAL-5 branch.
Comment #4
ugerhard commentedSorry, the patch in #3 only fixes the mssings base_path() calls, but not the 'images/' problem. Here's a new patch.
Comment #5
solutiondrop commented+1
I applied this patch and no longer get the missing image log entries. So far I have not witnessed anything wrong with the patch. Thanks ugerhard.
Comment #6
chrisshattuck commentedThanks for the patch, ugerhard, and the testing , dividespace. I have applied this patch to the dev in both Drupal 5 and 6.
Thanks!
Chris
Comment #7
chrisshattuck commentedComment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.