From d395112f305c7d5b620a6472cf7a770580fb8549 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 8 Sep 2014 10:09:30 -0500 Subject: [PATCH] i18n: Fixup searchable string tokenizing --- include/class.format.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/class.format.php b/include/class.format.php index 9267c9ff9..99a708c6e 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -619,7 +619,10 @@ class Format { $lang ?: ($cfg ? $cfg->getSystemLanguage() : 'en_US')) ) { $tokenizer->setText($text); - $text = implode(' ', $tokenizer); + $tokens = array(); + foreach ($tokenizer as $token) + $tokens[] = $token; + $text = implode(' ', $tokens); } } else { -- GitLab