From fe690dcf20cb5c7ec6c9ed222bf88c51fdbc30eb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 28 Oct 2012 20:27:50 +0000 Subject: [PATCH] Use page parameter instead of p for pagination. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10744 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/wiki_controller.rb | 2 +- app/views/wiki/history.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 9c6a4cf20..063a91ef8 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -220,7 +220,7 @@ class WikiController < ApplicationController # show page history def history @version_count = @page.content.versions.count - @version_pages = Paginator.new self, @version_count, per_page_option, params['p'] + @version_pages = Paginator.new self, @version_count, per_page_option, params['page'] # don't load text @versions = @page.content.versions.find :all, :select => "id, author_id, comments, updated_on, version", diff --git a/app/views/wiki/history.html.erb b/app/views/wiki/history.html.erb index b03af266a..90ce353df 100644 --- a/app/views/wiki/history.html.erb +++ b/app/views/wiki/history.html.erb @@ -38,5 +38,5 @@ <%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %> -<%= pagination_links_full @version_pages, @version_count, :page_param => :p %> +<%= pagination_links_full @version_pages, @version_count %> <% end %> -- 2.39.5