On the gallery overview page (on my site it's /image), the thumbnails of the latest images are not displayed. I'm not using the views module, and I did a fresh import of the images (did not upgrade from 5.x).

It seems the line at issue is line 345 in image_gallery.module: $content .= l(image_display($gallery->latest, IMAGE_THUMBNAIL), 'image/tid/'. $gallery->tid, array(), NULL, NULL, FALSE, TRUE);

All the images display correctly within the galleries themselves.

CommentFileSizeAuthor
#4 image-gallery.module-galleryimage.patch1.48 KBbarry

Comments

gtcaz’s picture

Anyone?

barry’s picture

I've just noticed this one too whilst working on converting one of my themes to drupal 6.0, I'll have a look into it now and see what I can figure out, I'm a bit rusty though so if anyone else can fix it please go ahead.

barry’s picture

I might be wrong but I think the problem is with the following line in image-gallery.module

if ($nid = db_result(db_query_range(db_rewrite_sql($sql)))) {

Sadly, I have no idea what it does as I haven't done any drupal coding since early version 4.

barry’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB

This should do the job..

drewish’s picture

Status: Needs review » Fixed

the l() change looks right and i've got no idea what that db_query_range() was supposed to be doing... comitted to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.