diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-27 21:52:27 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-27 21:52:27 +0000 |
commit | fc7f5affd1c26266f5cb36498ddbb58f339032b2 (patch) | |
tree | d3e6ef680809d8affd3d87c5206640b9e05a3771 | |
parent | 0a8da7fb9726eb1462409c6a0a0f1ee2c39e1d59 (diff) | |
download | brdo-fc7f5affd1c26266f5cb36498ddbb58f339032b2.tar.gz brdo-fc7f5affd1c26266f5cb36498ddbb58f339032b2.tar.bz2 |
- Search code fixes: pass right to theme('pager'), remove unnecessary db query arguments
-rw-r--r-- | modules/search.module | 4 | ||||
-rw-r--r-- | modules/search/search.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/search.module b/modules/search.module index ca5fca5ed..9353e1028 100644 --- a/modules/search.module +++ b/modules/search.module @@ -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; } diff --git a/modules/search/search.module b/modules/search/search.module index ca5fca5ed..9353e1028 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -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; } |