Ха, раньше такой проблемы не было.... аж интересно стало.
По поводу кодировки - core/components/simplesearch/model/simplesearch/simplesearch.class.php
1) стр.261
$text = trim(preg_replace('/\s+/', ' ', $this->sanitize($text)));
заменяем на
$text = trim(preg_replace('/\s+/u', ' ', $this->sanitize($text)));
2) стр.360
$string = preg_replace('/' . $quoteValue . '/i', '<'.$tag.' class="'.$cls.'">$0</'.$tag.'>', $string);
заменяем на
$string = preg_replace('/' . $quoteValue . '/iu', '<'.$tag.' class="'.$cls.'">$0</'.$tag.'>', $string);
3) находим строчку 247
$text = preg_replace('/(\[\[\+.*?\]\])/i', '', $text);
заменяем на
$text = preg_replace('/(\[\[\+.*?\]\])/iu', '', $text);
4) закоментировать стр 177 (будет время. разберусь)
//if (!empty($str)) $this->searchString = strip_tags($this->modx->sanitizeString($str));
Как сделать так, чтобы поисковик не обращал внимания на большие и маленькие буквы, т.е. чтобы Antec и antec для него было одно и тоже?
- вроде нормально у меня реагирует....
[ed. note: valikras last edited this post 14 years, 9 months ago.]