Closed (fixed)
Project:
Shadowbox
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2008 at 12:11 UTC
Updated:
5 Jun 2008 at 07:32 UTC
Hi, if caching is on, hook_init is still called. In shadowbox there are calls to drupal_get_path and base_path(). These won't work if caching is on.
I fixed this on my installation by renaming shadowbox_init to something like shadowbox_start_setup() and by calling this function in hook_menu().
Thx for this module btw. I have added some features and will commit those asap.
Comments
Comment #1
psynaptic commentedI've don't quite a bit of work on the 5.x version of this module and one thing is moving the header code to hook_menu. If you're going to submit patches, please do them in small chunks.