diff --git a/lib/Alchemy/Phrasea/Controller/Prod/Tooltip.php b/lib/Alchemy/Phrasea/Controller/Prod/Tooltip.php index a79a2e394b..6cc8359da3 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/Tooltip.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/Tooltip.php @@ -103,12 +103,10 @@ class Tooltip implements ControllerProviderInterface public function displayPreview(Application $app, $sbas_id, $record_id) { - $record = new \record_adapter($app, $sbas_id, $record_id); - - return $app['twig']->render( - 'prod/Tooltip/Preview.html.twig' - , array('record' => $record, 'not_wrapped' => true) - ); + return $app['twig']->render('prod/Tooltip/Preview.html.twig', array( + 'record' => new \record_adapter($app, $sbas_id, $record_id), + 'not_wrapped' => true + )); } public function displayCaption(Application $app, $sbas_id, $record_id, $context) diff --git a/templates/web/prod/Tooltip/Tooltip.html.twig b/templates/web/prod/Tooltip/Tooltip.html.twig index 95eb856df5..5266e93949 100644 --- a/templates/web/prod/Tooltip/Tooltip.html.twig +++ b/templates/web/prod/Tooltip/Tooltip.html.twig @@ -1,8 +1,8 @@ -