aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-12 12:53:30 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-12 12:53:30 +1100
commit2eadcc3417b11237f9e40dd5eb5804b2fcc44c82 (patch)
treecc05a244b04fcfcb6858cd256a0ff4bd5c016b30 /app/controllers/general_controller.rb
parentc4ee8fc6aeba6f1bb6eaad161c7bbc766a19e4d1 (diff)
Pass parameters to method rather explicitly
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 875e39494..a8bbc22ff 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -151,10 +151,10 @@ class GeneralController < ApplicationController
params[:query] = @query
end
if @variety_postfix != "all" && @requests
- @query, _ = make_query_from_params
+ @query, _ = make_query_from_params(params)
end
@inputted_sortby = @sortby
- @common_query = get_tags_from_params
+ @common_query = get_tags_from_params(params)
if @sortby.nil?
# Parse query, so can work out if it has prefix terms only - if so then it is a
# structured query which should show newest first, rather than a free text search