From: Raphaƫl Gertz Date: Mon, 23 Aug 2021 07:49:47 +0000 (+0200) Subject: Add locale to allow snippet fetching X-Git-Tag: 0.2.0~68 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/36fab6841dd80e6b98812ab8cbe99b42fe097dac Add locale to allow snippet fetching --- diff --git a/Controller/UserController.php b/Controller/UserController.php index 7d38c02..3ed64c7 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -149,7 +149,7 @@ class UserController extends DefaultController { //Fetch calendar //TODO: highlight with current session route parameter - $calendar = $doctrine->getRepository(Session::class)->fetchUserCalendarByDatePeriod($this->translator, $period, $isGuest?$id:null, $request->get('session')); + $calendar = $doctrine->getRepository(Session::class)->fetchUserCalendarByDatePeriod($this->translator, $period, $isGuest?$id:null, $request->get('session'), $request->getLocale()); //Fetch locations //XXX: we want to display all active locations anyway