mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Rollback
This commit is contained in:
@@ -178,7 +178,7 @@ class caption_record implements caption_interface, cache_cacheableInterface
|
|||||||
protected function highlight_fields($highlight, Array $grep_fields = null, searchEngine_adapter $searchEngine = null)
|
protected function highlight_fields($highlight, Array $grep_fields = null, searchEngine_adapter $searchEngine = null)
|
||||||
{
|
{
|
||||||
$fields = array();
|
$fields = array();
|
||||||
|
|
||||||
foreach ($this->retrieve_fields() as $meta_struct_id => $field)
|
foreach ($this->retrieve_fields() as $meta_struct_id => $field)
|
||||||
{
|
{
|
||||||
if (is_array($grep_fields) && !in_array($field->get_name(), $grep_fields))
|
if (is_array($grep_fields) && !in_array($field->get_name(), $grep_fields))
|
||||||
@@ -209,8 +209,8 @@ class caption_record implements caption_interface, cache_cacheableInterface
|
|||||||
if(!isset($fields[$key]))
|
if(!isset($fields[$key]))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(strpos($fields[$key]['value'], '<a ') === false)
|
//if(strpos($fields[$key]['value'], '<a ') === false)
|
||||||
$fields[$key]['value'] = $ret[$n];
|
$fields[$key]['value'] = $ret[$n];
|
||||||
|
|
||||||
$n++;
|
$n++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user