]> Raphaël G. Git Repositories - airbundle/commitdiff
Remove location short
authorRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 03:43:21 +0000 (04:43 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 1 Feb 2024 03:43:21 +0000 (04:43 +0100)
Command/CalendarCommand.php

index a78384861e7f41de51e8ae5b153efb67d1a4fd6b..2968f4800196059e794d6510c74ed01fff2e6620 100644 (file)
@@ -354,7 +354,7 @@ class CalendarCommand extends Command {
                                                                //TODO: replace 'airlibre' with $this->config['calendar']['prefix'] when possible with prefix validating [a-v0-9]{5,}
                                                                //XXX: see https://developers.google.com/calendar/api/v3/reference/events/insert#id
                                                                'id' => $token['prefix'].$sessionId,
-                                                               'summary' => $session['au_pseudonym'].' '.$this->translator->trans('at '.$session['l_short']),
+                                                               'summary' => $session['au_pseudonym'].' '.$this->translator->trans('at '.$session['l_title']),
                                                                #'description' => $markdown->convert(strip_tags($session['p_description'])),
                                                                'description' => $description,
                                                                'status' => empty($session['a_canceled'])?'confirmed':'cancelled',
@@ -395,7 +395,7 @@ class CalendarCommand extends Command {
                                                //With updated event
                                                if ($session['updated'] >= (new \DateTime($event->getUpdated()))) {
                                                        //Set summary
-                                                       $event->setSummary($session['au_pseudonym'].' '.$this->translator->trans('at '.$session['l_short']));
+                                                       $event->setSummary($session['au_pseudonym'].' '.$this->translator->trans('at '.$session['l_title']));
 
                                                        //Set description
                                                        $event->setDescription($description);