there are certain circumstances where drupal_get_path() is not loaded, but the module code is. attached simply wraps the code using drupal_get_path() in a function_exists() check. i believe this will work fine, as i don't think those .inc files need to be loaded in cases where drupal_get_path() isn't available.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | path_fix.patch | 1.52 KB | hunmonk |
| path_fix.patch | 981 bytes | hunmonk |
Comments
Comment #1
hunmonk commentedchx pointed out that we can't have any functions run in project_issue_exit() that are in the included files, in the case where drupal_get_path() isn't available (ie, cached pages), so i've added a check to test for that case.
Comment #2
chx commentedComment #3
hunmonk commentedfixed in HEAD. this problem exists in all other branches, but since project_issue didn't have an exit() hook before, it wasn't causing any headaches. leaving to be ported if anybody wants to clean that up.
Comment #4
dwwBackported and committed to DRUPAL-5, DRUPAL-4-7--2 and DRUPAL-4-7. Just cleaning out low-hanging fruit. ;)
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.