While migrating an older site to Drupal 5, I noticed that there were some errors: Module files weren’t found. The attached patch fixes the old update function to update correctly to Drupal 5.
Why fix old update functions? Usually, old updates are not modified but new updates are added. In this case however, we need to change the old functions because the hardcoded module path does no longer exist in Drupal 5 (modules moved to their own directory).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | update_24.patch | 1.03 KB | ChrisKennedy |
| #5 | update_23.patch | 1019 bytes | RobRoy |
| #3 | update_22.patch | 1019 bytes | RobRoy |
| update-update.patch | 1.04 KB | kkaefer |
Comments
Comment #1
dries commentedGood catch. Committed this to CVS HEAD. Thanks again.
Comment #2
RobRoy commentedShouldn't those include the ./ like "include_once './'. drupal_get_path('module', ..."?
Comment #3
RobRoy commentedActually, I just updated from HEAD and it doesn't look like this was committed in the first place. So here is a patch with the proper './' in there too.
Comment #4
ChrisKennedy commented(Minor) Spacing error in the string concatenation of the second modification.
Comment #5
RobRoy commentedMan, I'm usually a stickler for those too. Should have double checked the edit. Thanks Chris. :P
Comment #6
dries commentedPatch looks good but doesn't apply? Odd.
Comment #7
ChrisKennedy commentedIt just wasn't rolled from the root directory.
Comment #8
dries commentedCommitted to CVS HEAD. Thanks!
Comment #9
(not verified) commented