Closed (fixed)
Project:
CloudFront
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2010 at 06:20 UTC
Updated:
6 May 2010 at 17:11 UTC
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
Comment #1
hozt commentedAdded your fix to the cvs and dev version. Thanks!