From 8bd64d13149e6c97cef9a68e94504e35131cd72b Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Wed, 23 Jan 2013 16:23:15 +0100 Subject: [PATCH] Remove use of initPhrasea() function from Application --- www/report/ajax_chart.php | 2 -- www/report/ajax_info_dashboard.php | 2 -- www/report/ajax_liste_base.php | 1 - www/report/ajax_table_content.php | 1 - www/report/index.php | 3 +-- www/report/report.php | 1 - www/report/tab.php | 2 -- 7 files changed, 1 insertion(+), 11 deletions(-) diff --git a/www/report/ajax_chart.php b/www/report/ajax_chart.php index 6e6ad41507..3304c94305 100644 --- a/www/report/ajax_chart.php +++ b/www/report/ajax_chart.php @@ -27,8 +27,6 @@ $app = new Application(); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); - -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event); diff --git a/www/report/ajax_info_dashboard.php b/www/report/ajax_info_dashboard.php index a7f3f4bdb0..e19192146b 100644 --- a/www/report/ajax_info_dashboard.php +++ b/www/report/ajax_info_dashboard.php @@ -27,8 +27,6 @@ $app = new Application(); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); - -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event); diff --git a/www/report/ajax_liste_base.php b/www/report/ajax_liste_base.php index 7e6ba70f02..f874b4f6c4 100644 --- a/www/report/ajax_liste_base.php +++ b/www/report/ajax_liste_base.php @@ -79,7 +79,6 @@ $app = new Application(); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event); diff --git a/www/report/ajax_table_content.php b/www/report/ajax_table_content.php index c04bb9affb..e8a02f3ff3 100644 --- a/www/report/ajax_table_content.php +++ b/www/report/ajax_table_content.php @@ -59,7 +59,6 @@ $app = new Application(); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event); diff --git a/www/report/index.php b/www/report/index.php index f241c51440..7e675b5eb5 100644 --- a/www/report/index.php +++ b/www/report/index.php @@ -23,11 +23,10 @@ use Symfony\Component\HttpKernel\Event\GetResponseEvent; require_once __DIR__ . "/../../vendor/autoload.php"; -$app = new Application(); +$app = new Application('dev'); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event); diff --git a/www/report/report.php b/www/report/report.php index 00a51ac756..d64c8a0dae 100644 --- a/www/report/report.php +++ b/www/report/report.php @@ -26,7 +26,6 @@ $app = new Application(); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event); $request = http_request::getInstance(); diff --git a/www/report/tab.php b/www/report/tab.php index a8dfddcf8e..c1943e9381 100644 --- a/www/report/tab.php +++ b/www/report/tab.php @@ -60,8 +60,6 @@ $app = new Application(); $event = new GetResponseEvent($app, Request::createFromGlobals(), HttpKernelInterface::MASTER_REQUEST); - -$app->initPhrasea($event); $app->addLocale($event); $app->initSession($event);