diff -r c72b545f1304 -r 67bd3121a12e includes/search.php --- a/includes/search.php Wed Dec 26 00:37:26 2007 -0500 +++ b/includes/search.php Thu Dec 27 22:09:33 2007 -0500 @@ -75,7 +75,7 @@ $words = explode(' ', $letters); foreach($words as $c => $w) { - if(strlen($w) < 2 || in_array($w, $stopwords)) + if(strlen($w) < 2 || in_array($w, $stopwords) || strlen($w) > 63) unset($words[$c]); else $words[$c] = $w; @@ -119,6 +119,8 @@ function perform_search($query, &$warnings, $case_sensitive = false, &$word_list) { global $db, $session, $paths, $template, $plugins; // Common objects + global $lang; + $warnings = array(); $query = parse_search_query($query, $warnings); @@ -529,7 +531,7 @@ 'namespace' => $page['namespace'], 'score' => $scores[$idstring], 'page_length' => 1, - 'page_note' => '[Special page]' + 'page_note' => '[' . $lang->get('search_result_tag_special') . ']' ); } }