Closed (fixed)
Project:
Path image
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2007 at 09:05 UTC
Updated:
10 Jun 2007 at 10:46 UTC
Calling hook_init() should be avoided as it makes it impossible to reliable use the aggressive caching method of Drupal 5. As the hook is only used for setting some define()s to enable debugging, I would just set the defines outside the function.
BTW: I don't think the module should include debugging code. This may be useful for a -dev branch, but not for releases.
| Comment | File | Size | Author |
|---|---|---|---|
| path_image.init_.patch | 1.24 KB | Robrecht Jacques |
Comments
Comment #1
AjK commentedRobrecht,
I have added you as a CVS co-maintainer to the project. Feel free to commit (tested) patches :)
Thanks for your input and feedback.
cheers,
--Andy
Comment #2
Robrecht Jacques commentedI've started commiting my (small) patches. Will test the
$_SERVER['DOCUMENT_ROOT']a bit more this afternoon before committing it.About this issue: are you ok with removing the debugging stuff? Or do you prefer it to stay?
Comment #3
Robrecht Jacques commentedFixed in 5.x-1.x-dev.
I did not remove the debugging information.
Comment #4
(not verified) commented