Skip to content

Commit

Permalink
fixing typo that caused a NameError (undefined local variable or meth…
Browse files Browse the repository at this point in the history
…od `geometry\' for #<Page:...>)

Signed-off-by: Tom Cowell <tc@eightsquarestudio.com>

Signed-off-by: Andrea Franz <andrea@gravityblast.com>
  • Loading branch information
jomz authored and gravityblast committed Jun 19, 2009
1 parent a95b63d commit bb2ff7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gallery_lightbox_tags.rb
Expand Up @@ -28,9 +28,9 @@ module GalleryLightboxTags

content = %{ <div class="lightbox_gallery_list"><ul> }
gallery.items.each do |item|
width, height, size, geomtery = tag.attr["thumb_width"], tag.attr["thumb_height"], tag.attr["thumb_size"], tag.attr["thumb_geomtery"]
width, height, size, geometry = tag.attr["thumb_width"], tag.attr["thumb_height"], tag.attr["thumb_size"], tag.attr["thumb_geometry"]
thumb_path = item.thumb(:width => width, :height => height, :geometry => geometry).public_filename
width, height, size, geometry = tag.attr["image_width"], tag.attr["image_height"], tag.attr["image_size"], tag.attr["image_geomtery"]
width, height, size, geometry = tag.attr["image_width"], tag.attr["image_height"], tag.attr["image_size"], tag.attr["image_geometry"]
image_path = item.thumb(:width => width, :height => height, :geometry => geometry).public_filename
li_start_tag = tag.attr["thumbnail"] == 'none' ? '<li>' : %{<li style="background-image: url('#{thumb_path}')">}
content << %{ #{li_start_tag}
Expand Down

0 comments on commit bb2ff7f

Please sign in to comment.