]> Raphaël G. Git Repositories - blogbundle/blobdiff - Controller/UserController.php
Rename rapsys_blog route to rapsysblog
[blogbundle] / Controller / UserController.php
index ed6109cde2a0cf83e9982e517c2de5405a4de9f6..a4e2e575c32779b7c29f9348a51b0c8cf0d64f7f 100644 (file)
@@ -111,7 +111,7 @@ class UserController extends AbstractController {
                );
 
                //Set title
-               $this->context['title'] = $this->translator->trans('Users list');
+               $this->context['title']['page'] = $this->translator->trans('Users list');
 
                //Set description
                $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary user listing');
@@ -140,7 +140,7 @@ class UserController extends AbstractController {
                //With invalid slug
                if ($slug !== $this->context['user']['slug']) {
                        //Redirect on correctly spelled user
-                       return $this->redirectToRoute('rapsys_blog_user_view', ['id' => $this->context['user']['id'], 'slug' => $this->context['user']['slug']], Response::HTTP_MOVED_PERMANENTLY);
+                       return $this->redirectToRoute('rapsysblog_user_view', ['id' => $this->context['user']['id'], 'slug' => $this->context['user']['slug']], Response::HTTP_MOVED_PERMANENTLY);
                }
 
                //Set modified
@@ -207,7 +207,7 @@ class UserController extends AbstractController {
                );
 
                //Set title
-               $this->context['title'] = $this->context['user']['pseudonym'];
+               $this->context['title']['page'] = $this->context['user']['pseudonym'];
 
                //Set description
                //TODO: Add user creation ? Add a description field ?