X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/593afd90a9047fb444154b5544378386854bf87f..27cb2d1871b492f7360a12858ed3364f7557265a:/Controller/UserController.php diff --git a/Controller/UserController.php b/Controller/UserController.php index ed6109c..a4e2e57 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -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 ?