]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/LocationController.php
Add captcha row
[airbundle] / Controller / LocationController.php
index 51f1b0b059068f859132458aa2d1016e2b4da4ca..9ee9471af6ceda4badb0f3086cdfd35a3d025727 100644 (file)
@@ -227,7 +227,7 @@ class LocationController extends DefaultController {
        /**
         * List all locations
         *
        /**
         * List all locations
         *
-        * @desc Display all locations
+        * Display all locations
         *
         * @param Request $request The request instance
         *
         *
         * @param Request $request The request instance
         *
@@ -329,7 +329,7 @@ class LocationController extends DefaultController {
                                        $this->addFlash('notice', $this->translator->trans('Location %id% updated', ['%id%' => $location['id']]));
 
                                        //Redirect to cleanup the form
                                        $this->addFlash('notice', $this->translator->trans('Location %id% updated', ['%id%' => $location['id']]));
 
                                        //Redirect to cleanup the form
-                                       return $this->redirectToRoute('rapsys_air_location', ['location' => $location['id']]);
+                                       return $this->redirectToRoute('rapsysair_location', ['location' => $location['id']]);
                                }
 
                                //Add form to context
                                }
 
                                //Add form to context
@@ -366,7 +366,7 @@ class LocationController extends DefaultController {
                                $this->addFlash('notice', $this->translator->trans('Location created'));
 
                                //Redirect to cleanup the form
                                $this->addFlash('notice', $this->translator->trans('Location created'));
 
                                //Redirect to cleanup the form
-                               return $this->redirectToRoute('rapsys_air_location', ['location' => $data->getId()]);
+                               return $this->redirectToRoute('rapsysair_location', ['location' => $data->getId()]);
                        }
 
                        //Add form to context
                        }
 
                        //Add form to context
@@ -400,7 +400,7 @@ class LocationController extends DefaultController {
                //With invalid slug
                if ($location !== $this->context['location']['slug']) {
                        //Redirect on correctly spelled location
                //With invalid slug
                if ($location !== $this->context['location']['slug']) {
                        //Redirect on correctly spelled location
-                       return $this->redirectToRoute('rapsys_air_location_view', ['id' => $this->context['location']['id'], 'location' => $this->context['location']['slug']], Response::HTTP_MOVED_PERMANENTLY);
+                       return $this->redirectToRoute('rapsysair_location_view', ['id' => $this->context['location']['id'], 'location' => $this->context['location']['slug']], Response::HTTP_MOVED_PERMANENTLY);
                }
 
                //Fetch calendar
                }
 
                //Fetch calendar
@@ -426,7 +426,7 @@ class LocationController extends DefaultController {
 
                //Set modified
                //XXX: dance modified is already computed inside calendar modified
 
                //Set modified
                //XXX: dance modified is already computed inside calendar modified
-               $this->modified = max(array_merge([$this->context['location']['updated']], array_map(function ($v) { return $v['modified']; }, array_merge($this->context['calendar'], $this->context['locations']))));
+               $this->modified = max(array_merge([$this->context['location']['modified']], array_map(function ($v) { return $v['modified']; }, array_merge($this->context['calendar'], $this->context['locations']))));
 
                //Create response
                $response = new Response();
 
                //Create response
                $response = new Response();