mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Cleanup controllers
This commit is contained in:
@@ -30,7 +30,7 @@ class Tooltip implements ControllerProviderInterface
|
||||
$controllers->before(function(Request $request) use ($app) {
|
||||
$response = $app['firewall']->requireAuthentication();
|
||||
|
||||
if($response instanceof Response) {
|
||||
if ($response instanceof Response) {
|
||||
return $response;
|
||||
}
|
||||
});
|
||||
@@ -122,14 +122,13 @@ class Tooltip implements ControllerProviderInterface
|
||||
}
|
||||
|
||||
return $app['twig']->render(
|
||||
'prod/Tooltip/Caption.html.twig'
|
||||
, array(
|
||||
'record' => $record,
|
||||
'view' => $context,
|
||||
'highlight' => $app['request']->request->get('query'),
|
||||
'searchEngine' => $search_engine,
|
||||
)
|
||||
);
|
||||
'prod/Tooltip/Caption.html.twig'
|
||||
, array(
|
||||
'record' => $record,
|
||||
'view' => $context,
|
||||
'highlight' => $app['request']->request->get('query'),
|
||||
'searchEngine' => $search_engine,
|
||||
));
|
||||
}
|
||||
|
||||
public function displayTechnicalDatas(Application $app, $sbas_id, $record_id)
|
||||
|
Reference in New Issue
Block a user