X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef40b61ff40881966ae4280cfdcb9f92965e9d10..261a93fbbc974400d40b74bca9923887d939ab79:/app/controllers/changeset_controller.rb diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 7573a1803..2834fdae9 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -307,11 +307,15 @@ class ChangesetController < ApplicationController @description = t 'changeset.list.description' end - @edit_pages, @edits = paginate(:changesets, - :include => [:user, :changeset_tags], - :conditions => conditions, - :order => "changesets.created_at DESC", - :per_page => 20) + @page = (params[:page] || 1).to_i + @page_size = 20 + + @edits = Changeset.find(:all, + :include => [:user, :changeset_tags], + :conditions => conditions, + :order => "changesets.created_at DESC", + :offset => (@page - 1) * @page_size, + :limit => @page_size) end private