Revision 697
Added by thorn almost 17 years ago
trunk/CHANGELOG | ||
---|---|---|
10 | 10 |
# = Bugfix |
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 |
------------------------------------- 2.7.0 ------------------------------------- |
|
13 |
------------------------------------- 2.7.0 ------------------------------------- |
|
14 |
13-Feb-2008 Thomas Hornik |
|
15 |
# fixed an highlighting-issue: highlighting a page with more than one sections mangled umlauts in the second to last section. |
|
14 | 16 |
10-Feb-2008 Matthias Gallas |
15 | 17 |
# fixed some errors in standard german language file |
16 | 18 |
+ added new colloquially german language file (thanks to Michael Tenschert) |
trunk/wb/framework/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
fixed an highlighting-issue: highlighting a page with more than one sections mangled umlauts in the second to last section