Index: img_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.module,v
retrieving revision 1.68.2.14
diff -u -r1.68.2.14 img_assist.module
--- img_assist.module	17 Jun 2007 22:07:47 -0000	1.68.2.14
+++ img_assist.module	5 Jul 2007 13:42:52 -0000
@@ -1334,7 +1334,8 @@
     $info = image_get_info(file_create_path($node->images[$popup_size]));
     $width = $info['width'];
     $height = $info['height'];
-    $output .= l($img_tag, '', array('onclick' => "launch_popup($node->nid, $width, $height); return false;", 'target' => '_blank'), NULL, NULL, FALSE, TRUE);
+    $url = file_create_url($node->images[variable_get('img_assist_popup_label', IMAGE_PREVIEW)]);
+    $output .= l($img_tag, $url, array('onclick' => "launch_popup($node->nid, $width, $height); return false;", 'target' => '_blank'), NULL, NULL, FALSE, TRUE);
 
   }
   elseif ($link[0] == 'url') {
