Closed (fixed)
Project:
Thickbox
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2007 at 10:57 UTC
Updated:
27 Aug 2008 at 14:52 UTC
an issue that have been covered in the imagecache issue's
if an image_field (cck) is deletede thickbox still trys to build the image link :/
this little fix takes care of business:
line 195:
change :
return l($image, file_create_url($path), array('title' => $title, 'class' => 'thickbox', 'rel' => $field['type_name']), NULL, NULL, FALSE, TRUE);
to this
if(!$path){
return '';
}else{
return l($image, file_create_url($path), array('title' => $title, 'class' => 'thickbox', 'rel' => $field['type_name']), NULL, NULL, FALSE, TRUE);
}
no more broken images :)
Comments
Comment #1
frjo commentedComment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.