mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
Fix publi caption
This commit is contained in:
@@ -103,11 +103,14 @@ class Tooltip implements ControllerProviderInterface
|
||||
|
||||
$search_engine = null;
|
||||
|
||||
if($view == 'answer')
|
||||
{
|
||||
if (($search_engine_options = unserialize($app['request']->get('options_serial'))) !== false)
|
||||
{
|
||||
$search_engine = new \searchEngine_adapter($app['appbox']->get_registry());
|
||||
$search_engine->set_options($search_engine_options);
|
||||
}
|
||||
}
|
||||
|
||||
/* @var $twig \Twig_Environment */
|
||||
$twig = $app['Core']->getTwig();
|
||||
|
||||
@@ -15,4 +15,6 @@
|
||||
{{cap_bas.format_caption(record, highlight|default(''), searchEngine|default(null))}}
|
||||
{% elseif view == 'overview' %}
|
||||
{{cap_ovr.format_caption(record, highlight|default(''), searchEngine|default(null))}}
|
||||
{% elseif view == 'publi' %}
|
||||
{{cap_pub.format_caption(record, '', null)}}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user