mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Remove unused highlighting parameters
This commit is contained in:
@@ -216,15 +216,12 @@ SQL;
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param string $highlight
|
* @param string $highlight
|
||||||
* @param array $grep_fields
|
* @param array $grep_fields
|
||||||
* @param SearchEngineInterface $searchEngine
|
* @param bool $includeBusiness
|
||||||
* @param Boolean $includeBusiness
|
|
||||||
*
|
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_highlight_fields($highlight = '', Array $grep_fields = null, SearchEngineInterface $searchEngine = null, $includeBusiness = false, SearchEngineOptions $options = null)
|
public function get_highlight_fields($highlight = '', array $grep_fields = null, $includeBusiness = false)
|
||||||
{
|
{
|
||||||
$fields = [];
|
$fields = [];
|
||||||
|
|
||||||
|
@@ -870,7 +870,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count($fields_to_retrieve) > 0) {
|
if (count($fields_to_retrieve) > 0) {
|
||||||
$retrieved_fields = $this->get_caption()->get_highlight_fields($highlight, $fields_to_retrieve, $searchEngine);
|
$retrieved_fields = $this->get_caption()->get_highlight_fields($highlight, $fields_to_retrieve);
|
||||||
$titles = [];
|
$titles = [];
|
||||||
foreach ($retrieved_fields as $value) {
|
foreach ($retrieved_fields as $value) {
|
||||||
foreach ($value['values'] as $v) {
|
foreach ($value['values'] as $v) {
|
||||||
|
@@ -103,7 +103,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro format_caption(record, highlight, search_engine, include_business, bounceable, technical_data) %}
|
{% macro format_caption(record, highlight, search_engine, include_business, bounceable, technical_data) %}
|
||||||
{% for field in record.get_caption().get_highlight_fields(highlight, null, search_engine, include_business) %}
|
{% for field in record.get_caption().get_highlight_fields(highlight, null, include_business) %}
|
||||||
{% set extra_classes = ['pair'] %}
|
{% set extra_classes = ['pair'] %}
|
||||||
{% if loop.index is odd %}
|
{% if loop.index is odd %}
|
||||||
{% set extra_classes = ['impair'] %}
|
{% set extra_classes = ['impair'] %}
|
||||||
|
Reference in New Issue
Block a user