Commit af692265 authored by David Lesieur's avatar David Lesieur

Use new escaping function.

parent 514d4a77
......@@ -61,7 +61,7 @@ class text_facet extends cck_facet {
function get_text() {
if ($category = $this->get_active_category()) {
// Quote and escape the value.
return '"'. strtr($category->_value, array('"' => '\"', '\\' => '\\\\')) .'"';
return '"'. faceted_search_quoted_query_escape($category->_value) .'"';
}
return '';
}
......
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