Commit 95fc2211 authored by lphuberdeau's avatar lphuberdeau

[FIX] Leave the default behavior unchanged for plain

parent 7403afca
......@@ -48,7 +48,7 @@ class Search_Formatter_Plugin_WikiTemplate implements Search_Formatter_Plugin_In
$name = $match->getName();
if ($name === 'display') {
$match->replaceWith($this->processDisplay($valueFormatter, $match->getBody(), $match->getArguments()));
$match->replaceWith((string) $this->processDisplay($valueFormatter, $match->getBody(), $match->getArguments()));
}
}
......
......@@ -7,7 +7,7 @@
class Search_Formatter_ValueFormatter_Plain implements Search_Formatter_ValueFormatter_Interface
{
private $separator = ', ';
private $separator = false;
function __construct($arguments)
{
......@@ -18,7 +18,7 @@ class Search_Formatter_ValueFormatter_Plain implements Search_Formatter_ValueFor
function render($name, $value, array $entry)
{
if (is_array($value)) {
if (is_array($value) && $this->separator !== false) {
return implode($this->separator, $value);
} else {
return $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment