diff --git a/lib/Alchemy/Phrasea/Controller/Report/Root.php b/lib/Alchemy/Phrasea/Controller/Report/Root.php index 9ae22fb128..f79cb97b86 100644 --- a/lib/Alchemy/Phrasea/Controller/Report/Root.php +++ b/lib/Alchemy/Phrasea/Controller/Report/Root.php @@ -68,7 +68,7 @@ class Root implements ControllerProviderInterface */ public function getDashboard(Application $app, Request $request) { - if ('json' !== $request->getRequestFormat()) { + if ('json' === $request->getRequestFormat()) { \Session_Logger::updateClientInfos($app, 4); $dashboard = new \module_report_dashboard($app, $app['authentication']->getUser()); @@ -108,11 +108,11 @@ class Root implements ControllerProviderInterface 'ajax_dash' => true, 'dashboard' => null, 'granted_bases' => $granted, - 'home_title' => $app['phraseanet.registry']->get('GV_homeTitle'), + 'home_title' => $app['conf']->get(['registry', 'general', 'title']), 'module' => 'report', 'module_name' => 'Report', - 'anonymous' => $app['phraseanet.registry']->get('GV_anonymousReport'), - 'g_anal' => $app['phraseanet.registry']->get('GV_googleAnalytics'), + 'anonymous' => $app['conf']->get(['registry', 'modules', 'anonymous-report']), + 'g_anal' => $app['conf']->get(['registry', 'general', 'analytics']), 'ajax' => false, 'ajax_chart' => false )); diff --git a/templates/web/report/all_content.html.twig b/templates/web/report/all_content.html.twig index 4df558671f..28d55b2784 100644 --- a/templates/web/report/all_content.html.twig +++ b/templates/web/report/all_content.html.twig @@ -12,15 +12,15 @@ {% block javascript %}