public
Description: Photo Gallery Management System based on Radiant CMS (Ruby on Rails).
Homepage: http://gravityblast.com/projects/radiant-gallery/
Clone URL: git://github.com/pilu/radiant-gallery.git
Click here to lend your support to: radiant-gallery and make a donation at www.pledgie.com !
fixed bug on offset attribute of gallery:items:each tag
pilu (author)
Fri May 30 12:06:24 -0700 2008
commit  e84779cdcb03abe77d85dc1af1781c1042661198
tree    6d893ee0704a52924ba82bcf18b1223915028982
parent  c1437f28d46cf107520f0070a780e50e75bc4670
...
35
36
37
38
 
39
40
41
...
35
36
37
 
38
39
40
41
0
@@ -35,7 +35,7 @@ module GalleryItemTags
0
     options[:conditions] = {:parent_id => nil}
0
     
0
     @page_number = tag.globals.page.request.params["page"] && tag.globals.page.request.params["page"].first.to_i > 1 ? tag.globals.page.request.params["page"].first.to_i : 1
0
- unless tag.attr['limit'].nil?
0
+ if !tag.attr['limit'].nil? && tag.attr['offset'].nil?
0
       options[:offset] = tag.attr['limit'].to_i * (@page_number - 1)
0
       @gallery_items_per_page = tag.attr['limit'].to_i
0
     end

Comments

    No one has commented yet.