mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
improved the search feature
Change-Id: Ia714ffade38edc9dd19b70ba37f996e6705ce057 Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
@ -148,20 +148,10 @@ class ControllerSearchHelper extends Controller {
|
||||
$from .= " $v";
|
||||
}
|
||||
else {
|
||||
if($prev_token_is_email == 1) {
|
||||
$prev_token_is_email = 0;
|
||||
$from .= " $v";
|
||||
}
|
||||
else {
|
||||
$match .= ' ' . $v;
|
||||
}
|
||||
$match .= ' ' . $v;
|
||||
}
|
||||
}
|
||||
|
||||
if($match && $match != ' ' . $this->data['text_enter_search_terms']) {
|
||||
$match = "@(subject,body) $match";
|
||||
}
|
||||
|
||||
|
||||
if($from) { $match = $from . ' ' . $match; }
|
||||
|
||||
|
Reference in New Issue
Block a user