Project

General

Profile

« Previous | Next » 

Revision 697

Added by thorn over 16 years ago

fixed an highlighting-issue: highlighting a page with more than one sections mangled umlauts in the second to last section

View differences:

frontend.functions.php
70 70
if (!function_exists('search_highlight')) {
71 71
function search_highlight($foo='', $arr_string=array()) {
72 72
	require_once(WB_PATH.'/framework/functions.php');
73
	require_once(WB_PATH.'/search/search_convert.php');
74

  
73
	static $string_ul_umlauts=array();
74
	if($string_ul_umlauts == array())
75
		require(WB_PATH.'/search/search_convert.php');
75 76
	$foo = entities_to_umlauts($foo, 'UTF-8');
76 77
	array_walk($arr_string, create_function('&$v,$k','$v = preg_quote($v, \'/\');'));
77 78
	$search_string = implode("|", $arr_string);

Also available in: Unified diff