theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = null);

setting values when they should just be passed. Found in readme and in cloudfront.module

fix for cloudfront.module

function cloudview_theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = null) {
  if (is_null($attributes)) {
    $attributes['class'] = 'imagecache imagecache-'. $namespace;
  }

  if ($cloudfront_url = cloudfront_create_url($namespace, $path)) {
    $attributes = drupal_attributes($attributes);
    return '<img src="'. $cloudfront_url .'" alt="'. check_plain($alt) .'" title="'. check_plain($title) .'" '. $attributes .' />';
  }

  return theme_imagecache($namespace, $path, $alt, $title, $attributes);
}

This is also present in readme

Comments

hozt’s picture

Status: Active » Closed (fixed)

Added your fix to the cvs and dev version. Thanks!