Project

General

Profile

« Previous | Next » 

Revision 881

Added by thorn about 16 years ago

search: replaced most of $string_ul_umlauts (from search_convert.php) through use of preg's u-switch. Replaced strtr() by str_replace() (it's just faster). Changed ' to '

View differences:

search.php
238 238
require_once(WB_PATH.'/search/search_convert.php');
239 239
$search_words = array();
240 240
foreach($search_normal_array AS $str) {
241
	$str = strtr($str, $string_ul_umlauts);
241
	$str = str_replace($string_ul_umlaut, $string_ul_regex, $str);
242 242
	$search_words[] = $str;
243 243
}
244 244

  
......
650 650
							$sstring = implode(" ", $search_normal_array);
651 651
							$link = $link."?searchresult=1&sstring=".urlencode($sstring);
652 652
						} else {
653
							$sstring = strtr($search_normal_array[0], " ", "_");
653
							$sstring = str_replace(" ", "_",$search_normal_array[0]);
654 654
							$link = $link."?searchresult=2&sstring=".urlencode($sstring);
655 655
						}
656 656
						// Set vars to be replaced by values

Also available in: Unified diff