From: Raphaƫl Gertz Date: Thu, 7 Mar 2024 17:19:47 +0000 (+0100) Subject: Remove title merging X-Git-Tag: 0.4.0~8 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/9130dcd45d4201c7302883b6da347945c3655fc6?ds=inline;hp=7bd5dff399fc53ee52f78a410168916abca32447 Remove title merging --- diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index 8750a20..8a0a2c8 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -282,17 +282,6 @@ abstract class AbstractController extends BaseAbstractController implements Serv $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);