mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
Add getAuthenticator usage
Replace $app['authentication']->getUser() by $app->getAuthenticatedUser() replace twig app['authentication'].getUser() with corresponding method
This commit is contained in:
@@ -253,7 +253,7 @@ class module_report
|
||||
$this->dmax = $d2;
|
||||
$this->sbas_id = $sbas_id;
|
||||
$this->list_coll_id = $collist;
|
||||
$this->user_id = $this->app['authentication']->getUser()->getId();
|
||||
$this->user_id = $this->app->getAuthenticatedUser()->getId();
|
||||
$this->periode = sprintf(
|
||||
'%s - %s ',
|
||||
$this->app['date-formatter']->getPrettyString(new \DateTime($d1)),
|
||||
|
Reference in New Issue
Block a user