Shadowbox won't work if caching is on

Davy Van Den Bremt - June 4, 2008 - 12:11
Project:Shadowbox
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

psynaptic - June 5, 2008 - 07:32
Status:patch (code needs review)» closed

I'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.

 
 

Drupal is a registered trademark of Dries Buytaert.