Search po anketah - popravek rusenja strukture v dolocenih primerih
This commit is contained in:
parent
4bf5fa27a9
commit
625f40fe44
@ -358,10 +358,8 @@ class Library {
|
||||
|
||||
// Drugace vcasih pobrise presledek, ne vem kako drugace resit:)
|
||||
$text_searched = str_replace(' ', ' ', $text_searched);
|
||||
|
||||
foreach ($matches[0] as $match) {
|
||||
$text_searched = str_replace($match, '<span class="red">'.$match.'</span>', $text_searched);
|
||||
}
|
||||
|
||||
$text_searched = str_replace($matches[0][0], '<span class="red">'.$matches[0][0].'</span>', $text_searched);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1113,9 +1113,7 @@ class SurveyList {
|
||||
// Drugace vcasih pobrise presledek, ne vem kako drugace resit:)
|
||||
$text_searched = str_replace(' ', ' ', $text_searched);
|
||||
|
||||
foreach ($matches[0] as $match) {
|
||||
$text_searched = str_replace($match, '<span class="red">'.$match.'</span>', $text_searched);
|
||||
}
|
||||
$text_searched = str_replace($matches[0][0], '<span class="red">'.$matches[0][0].'</span>', $text_searched);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user