Skip to content

Commit

Permalink
update alt tag code on image_fu calls so that it uses the image's alt…
Browse files Browse the repository at this point in the history
… tag and not the thumbnail's alt tag
  • Loading branch information
parndt committed Sep 29, 2009
1 parent 742a434 commit 05a5d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/plugins/refinery/app/helpers/application_helper.rb
Expand Up @@ -71,9 +71,9 @@ def selected_page?(page)
def image_fu(image, thumbnail = nil , options={})
begin
image_thumbnail = thumbnail.nil? ? image : image.thumbnails.collect {|t| t if t.thumbnail == thumbnail.to_s}.compact.first
image_tag image_thumbnail.public_filename, {:width => image_thumbnail.width, :height => image_thumbnail.height}.merge!(options)
image_tag image_thumbnail.public_filename, {:alt => image.title, :width => image_thumbnail.width, :height => image_thumbnail.height}.merge!(options)
rescue
image_tag image.public_filename(thumbnail), options
image_tag image.public_filename(thumbnail), {:alt => image.title}.merge!(options)
end
end

Expand Down

0 comments on commit 05a5d47

Please sign in to comment.