# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/image/contrib/image_attach/image_attach.module
--- contributions/modules/image/contrib/image_attach/image_attach.module Base (1.46)
+++ contributions/modules/image/contrib/image_attach/image_attach.module Locally Modified (Based On 1.46)
@@ -388,9 +388,10 @@
       // If the image is restricted, don't show it as an attachment.
       return NULL;
     }
+    $class = 'image-attach-teaser' . $image->status ? '' : ' image-unpublished';
     $info = image_get_info(file_create_path($image->images[$img_size]));
 
-    $output = '<div style="width: '. $info['width'] .'px" class="image-attach-teaser">';
+    $output = '<div style="width: '. $info['width'] .'px" class="' . $class . '">';
     $output .= l(image_display($image, $img_size), "node/$node->nid", array('html' => TRUE));
     $output .= '</div>'."\n";
 
@@ -412,10 +413,10 @@
       // If the image is restricted, don't show it as an attachment.
       return NULL;
     }
-    $published = $image->status ? '' : ' image-unpublished';
+    $class = 'image-attach-body' . $image->status ? '' : ' image-unpublished';
     $info = image_get_info(file_create_path($image->images[$img_size]));
 
-    $output = '<div style="width: '. $info['width'] .'px" class="image-attach-body'. $published .'">';
+    $output = '<div style="width: '. $info['width'] .'px" class="' . $class . '">';
     $output .= l(image_display($image, $img_size), "node/$node->iid", array('html' => TRUE));
     $output .= '</div>'."\n";
 
