Skip to content

Commit

Permalink
Fix compatibility for contao 5 templates
Browse files Browse the repository at this point in the history
  • Loading branch information
rabauss committed Aug 19, 2022
1 parent 4a9e5ac commit 41b9e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/OutputBackendTemplateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __invoke(string $buffer, string $template): string
{
if ('be_login' === $template || 'be_login_two_factor' === $template || 'be_main' === $template) {
$buffer = str_replace(
['</head>', '<body '],
['</head>', '<body'],
[$this->getStyles().'</head>', '<body '.$this->getAttributes()],
$buffer
);
Expand Down

0 comments on commit 41b9e3e

Please sign in to comment.