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).

Comments

dries’s picture

Status: Needs review » Fixed

Good catch. Committed this to CVS HEAD. Thanks again.

RobRoy’s picture

Status: Fixed » Needs work

Shouldn't those include the ./ like "include_once './'. drupal_get_path('module', ..."?

RobRoy’s picture

Status: Needs work » Needs review
StatusFileSize
new1019 bytes

Actually, 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.

ChrisKennedy’s picture

Status: Needs review » Needs work

(Minor) Spacing error in the string concatenation of the second modification.

RobRoy’s picture

Status: Needs work » Needs review
StatusFileSize
new1019 bytes

Man, I'm usually a stickler for those too. Should have double checked the edit. Thanks Chris. :P

dries’s picture

Patch looks good but doesn't apply? Odd.

ChrisKennedy’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.03 KB

It just wasn't rolled from the root directory.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)