]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Controller/AbstractController.php
Remove title merging
[userbundle] / Controller / AbstractController.php
index 8750a20d2c6e85c01dbe8865350d80ff6761e3d4..8a0a2c824e506e8b152445f7dc67008fef6d94d3 100644 (file)
@@ -282,17 +282,6 @@ abstract class AbstractController extends BaseAbstractController implements Serv
                        $parameters['locale'] = $this->locale;
                }
 
                        $parameters['locale'] = $this->locale;
                }
 
-               /*TODO: XXX: to drop, we have title => [ 'page' => XXX, section => XXX, site => XXX ]
-               //With empty head title and section
-               if (empty($parameters['head']['title']) && !empty($parameters['section'])) {
-                       //Set head title
-                       $parameters['title'] = implode(' - ', [$parameters['title'], $parameters['section'], $parameters['head']['site']]);
-               //With empty head title
-               } elseif (empty($parameters['head']['title'])) {
-                       //Set head title
-                       $parameters['head']['title'] = implode(' - ', [$parameters['title'], $parameters['head']['site']]);
-               }*/
-
                //Call twig render method
                $content = $this->twig->render($view, $parameters);
 
                //Call twig render method
                $content = $this->twig->render($view, $parameters);