Commit fc7f5aff authored by Steven Wittens's avatar Steven Wittens
Browse files

- Search code fixes: pass right to theme('pager'), remove unnecessary db query arguments

parent 0a8da7fb
......@@ -863,7 +863,7 @@ function do_search($keywords, $type, $join1 = '', $where1 = '1', $arguments1 = a
$count_query = "SELECT $count";
// Do actual search query
$result = pager_query("SELECT * FROM temp_search_results", 10, 0, $count_query, $arguments);
$result = pager_query("SELECT * FROM temp_search_results", 10, 0, $count_query);
$results = array();
while ($item = db_fetch_object($result)) {
$results[] = $item;
......@@ -1204,7 +1204,7 @@ function theme_search_page($results, $type) {
$output .= theme('search_item', $entry, $type);
}
$output .= '</dl>';
$output .= theme('pager', NULL, 15, 0);
$output .= theme('pager', NULL, 10, 0);
return $output;
}
......@@ -863,7 +863,7 @@ function do_search($keywords, $type, $join1 = '', $where1 = '1', $arguments1 = a
$count_query = "SELECT $count";
// Do actual search query
$result = pager_query("SELECT * FROM temp_search_results", 10, 0, $count_query, $arguments);
$result = pager_query("SELECT * FROM temp_search_results", 10, 0, $count_query);
$results = array();
while ($item = db_fetch_object($result)) {
$results[] = $item;
......@@ -1204,7 +1204,7 @@ function theme_search_page($results, $type) {
$output .= theme('search_item', $entry, $type);
}
$output .= '</dl>';
$output .= theme('pager', NULL, 15, 0);
$output .= theme('pager', NULL, 10, 0);
return $output;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment