After upgrading, my image gallery was empty. Looking at the database content, it seems like the image_gallery update was not executed correctly. It uses this code:
$ret[] = update_sql("UPDATE {vocabulary} SET module='image_gallery' WHERE vid=%d", $vid);

But unlike db_query, update_sql doesn't accept a second parameter, so the update didn't do anything.

Patch attached.

CommentFileSizeAuthor
#1 image_157583.patch932 bytesdrewish
image-gallery-update.patch941 bytesbart jansens

Comments

drewish’s picture

Status: Needs review » Fixed
StatusFileSize
new932 bytes

good catch. i made a few small changes to the patch, i moved the (int) down. it just makes it a little clearer when you're eyeballing the code that it's safe.

Anonymous’s picture

Status: Fixed » Closed (fixed)