? 957808-fancybox.patch
Index: fancybox.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fancybox/Attic/fancybox.theme.inc,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 fancybox.theme.inc
--- fancybox.theme.inc	25 Oct 2010 22:25:39 -0000	1.1.2.3
+++ fancybox.theme.inc	30 Oct 2010 17:40:08 -0000
@@ -22,9 +22,7 @@ function theme_fancybox_formatter_imagef
  */
 function theme_imagefield_image_imagecache_fancybox($namespace, $field, $path, $title = '', $loop = '', $attributes = NULL) {
   if (!empty($path)) {
-    $attributes = drupal_attributes($attributes);
-    $imagecache_path = imagecache_create_url($namespace, $path);
-    $image = '<img src="'. $imagecache_path .'" alt="'. check_plain($title) .'" '. $attributes .' />';
+    $image = theme('imagecache', $namespace, $path, $title, $title, $attributes);
 
     $settings = variable_get('fancybox_settings', array());
 
@@ -35,7 +33,13 @@ function theme_imagefield_image_imagecac
       $link_path = file_create_url($path);
     }
 
-    $options = array('html' => TRUE, 'attributes' => array('title' => $title, 'class' => 'imagefield-fancybox'));
+    $options = array(
+      'html' => TRUE,
+      'attributes' => array(
+        'title' => $title,
+        'class' => "imagefield-fancybox",
+      )
+    );
     if ($loop) {
       $options['attributes']['rel'] = 'imagefield-fancybox-'. $loop;
     }
