]> Raphaël G. Git Repositories - blogbundle/blobdiff - Controller/ArticleController.php
Rename rapsys_blog route to rapsysblog
[blogbundle] / Controller / ArticleController.php
index 9cdb2479ad8275584431bc1205c1ffb8b5f1a9f4..68e3216757142532e9ad5b982e17cbdbaa044a6e 100644 (file)
@@ -104,7 +104,7 @@ class ArticleController extends AbstractController {
                );
 
                //Set title
-               $this->context['title'] = $this->translator->trans('Articles list');
+               $this->context['title']['page'] = $this->translator->trans('Articles list');
 
                //Set description
                $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary article listing');
@@ -133,7 +133,7 @@ class ArticleController extends AbstractController {
                //With invalid slug
                if ($slug !== $this->context['article']['slug']) {
                        //Redirect on correctly spelled article
-                       return $this->redirectToRoute('rapsys_blog_article_view', ['id' => $this->context['article']['id'], 'slug' => $this->context['article']['slug']], Response::HTTP_MOVED_PERMANENTLY);
+                       return $this->redirectToRoute('rapsysblog_article_view', ['id' => $this->context['article']['id'], 'slug' => $this->context['article']['slug']], Response::HTTP_MOVED_PERMANENTLY);
                }
 
                //Set modified
@@ -194,7 +194,7 @@ class ArticleController extends AbstractController {
                );
 
                //Set title
-               $this->context['title'] = $this->context['article']['title'];
+               $this->context['title']['page'] = $this->context['article']['title'];
 
                //Set description
                $this->context['description'] = $this->context['article']['description'];