Skip to content

Commit

Permalink
- Search code fixes: pass right to theme('pager'), remove unnecessary…
Browse files Browse the repository at this point in the history
… db query arguments
  • Loading branch information
Steven Wittens committed Mar 27, 2006
1 parent 0a8da7f commit fc7f5af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/search.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
4 changes: 2 additions & 2 deletions modules/search/search.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

0 comments on commit fc7f5af

Please sign in to comment.