diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index 1930adf07..7e11f41a7 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -20,8 +20,8 @@ module PaginationHelper params[:page] =~ /[ab]/ || records.current_page >= Danbooru.config.max_numbered_pages end - def numbered_paginator(records, switch_to_sequential = true) - if use_sequential_paginator?(records) && switch_to_sequential + def numbered_paginator(records) + if use_sequential_paginator?(records) return sequential_paginator(records) end diff --git a/app/views/artist_versions/index.html.erb b/app/views/artist_versions/index.html.erb index 9c4d4fe06..0e8559b0f 100644 --- a/app/views/artist_versions/index.html.erb +++ b/app/views/artist_versions/index.html.erb @@ -6,7 +6,7 @@ <%= render "listing" %> - <%= numbered_paginator(@artist_versions, :search_count => params[:search]) %> + <%= numbered_paginator(@artist_versions) %> diff --git a/app/views/tag_aliases/index.html.erb b/app/views/tag_aliases/index.html.erb index 3d8fdfe58..c28772782 100644 --- a/app/views/tag_aliases/index.html.erb +++ b/app/views/tag_aliases/index.html.erb @@ -3,7 +3,7 @@ <%= render "tag_relationships/search", url: tag_aliases_path %> <%= render "listing", :tag_aliases => @tag_aliases %> - <%= numbered_paginator(@tag_aliases) if @tag_aliases.respond_to?(:current_page) %> + <%= numbered_paginator(@tag_aliases) %>