From b0fbcd6c2112abddd64188463d4482ced77de729 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 9 Feb 2010 18:05:04 +0000 Subject: Documentation correction in search. git-svn-id: http://code.elgg.org/elgg/trunk@3925 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/start.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'mod/search/start.php') diff --git a/mod/search/start.php b/mod/search/start.php index 366ea4466..8a6f30e6b 100644 --- a/mod/search/start.php +++ b/mod/search/start.php @@ -77,11 +77,11 @@ function search_page_handler($page) { * Return a string with highlighted matched queries and relevant context * Determins context based upon occurance and distance of words with each other. * - * @param unknown_type $haystack - * @param unknown_type $need - * @param unknown_type $context - * @param unknown_type $max_length - * @return unknown_type + * @param string $haystack + * @param array $query + * @param int $min_match_context = 30 + * @param int $max_length = 300 + * @return string */ function search_get_highlighted_relevant_substrings($haystack, $query, $min_match_context = 30, $max_length = 300) { global $CONFIG; @@ -98,7 +98,6 @@ function search_get_highlighted_relevant_substrings($haystack, $query, $min_matc return $return; } - // get the starting positions and lengths for all matching words $starts = array(); $lengths = array(); -- cgit v1.2.3