]> Raphaël G. Git Repositories - airbundle/commitdiff
Add locale to allow snippet fetching
authorRaphaël Gertz <git@rapsys.eu>
Mon, 23 Aug 2021 07:49:47 +0000 (09:49 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 23 Aug 2021 07:49:47 +0000 (09:49 +0200)
Controller/UserController.php

index 7d38c0285dd9ba3092ef63e9b977f8d646733c86..3ed64c79e50e7da3a77a905ff30c27a726879074 100644 (file)
@@ -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