When using using the Lightbox2 module with the Flickr module, the "Download Original" link always ends up with path node/null.

Environment:
Drupal 6.14
Flickr 6.x-1.1
Lightbox2 6.x-1.9

This appears to be because in auto_image_handling.js::lightbox2_init_triggers() the variable "download" is initialized to null, but is never getting set for Flickr images (at least when fetched via the Flickr module).

The quick solution (sort of) is to update line 161 of auto_image_handling.js to check for a null download link:
161 (old): if (download_link_text.length) {
161 (new): if (download_link_text.length && download!=null) {

This hides the "Download Original" link if the download link is null. However, in the long term it would obviously be better to try to provide an actual link to the original.

Comments

stella’s picture

Status: Active » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

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