Commit 1efb1b7a authored by Jonny Bradley's avatar Jonny Bradley

[FIX] custom search: Don't parse results of a category as the categ separator...

[FIX] custom search: Don't parse results of a category as the categ separator is the same as wiki centring syntax (::) input. Possibly needs doing to all input types (eventually?)
Also check for _categopath==y or n instead of just isset.
parent 1cc21f3f
......@@ -418,6 +418,8 @@ function cs_design_categories($id, $fieldname, $fieldid, $arguments, $default, &
}
if (!isset($_categpath)) {
$_categpath = false;
} else {
$_categpath = ($_categpath === 'y');
}
$cats = TikiLib::lib('categ')->getCategories($filter);
......@@ -528,7 +530,7 @@ customsearch_quiet = false;
}
return $document->saveHTML();
return '~np~' . $document->saveHTML() . '~/np~';
}
function cs_design_select($id, $fieldname, $fieldid, $arguments, $default, &$script, &$groups)
......
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