aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-06 18:52:27 +0000
committerfrancis <francis>2008-03-06 18:52:27 +0000
commit8ea95ccb917ebf804599f61d720a66d62dbe46ec (patch)
tree2e35ed9ced57700b0256a56c00656acd8991dafc
parent57e3bc7bdcaec0d5d82a6c401e069269bf480a88 (diff)
Revert to original - do change with monkeypatch so at least recorded explicitly.
-rw-r--r--vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb b/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
index a1ce1c453..b3702fc09 100644
--- a/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
+++ b/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
@@ -115,12 +115,7 @@ module WillPaginate
@template.content_tag :span, text, :class => span_class
else
# page links should preserve GET/POST parameters
- if @template.params[:controller].match(/^admin_/)
- # XXX hack for admin pages, for mySociety HTTP proxy, use relative URL
- @template.link_to text, "?page=" + page.to_s
- else
- @template.link_to text, @template.params.merge(param => page != 1 ? page : nil)
- end
+ @template.link_to text, @template.params.merge(param => page != 1 ? page : nil)
end
end