From fc7f5affd1c26266f5cb36498ddbb58f339032b2 Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Mon, 27 Mar 2006 21:52:27 +0000 Subject: [PATCH] - Search code fixes: pass right to theme('pager'), remove unnecessary db query arguments --- modules/search.module | 4 ++-- modules/search/search.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/search.module b/modules/search.module index ca5fca5edd74..9353e1028e7d 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 ca5fca5edd74..9353e1028e7d 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; } -- GitLab