Skip to content
Snippets Groups Projects
Commit e32bfd67 authored by Markus Klein's avatar Markus Klein Committed by Benjamin Kott
Browse files

[FOLLOWUP][BUGFIX] Preview information should not conflict with frontend layout

Switch order of arguments to implode().

Resolves: #83158
Releases: master, 8.7
Change-Id: I15ff9827418e9d24fefae5f3fa8852a37f5363d0
Reviewed-on: https://review.typo3.org/54881


Reviewed-by: default avatarBenjamin Kott <benjamin.kott@outlook.com>
Tested-by: default avatarBenjamin Kott <benjamin.kott@outlook.com>
parent c33288e5
Branches
Tags
No related merge requests found
...@@ -51,7 +51,7 @@ class FrontendHooks ...@@ -51,7 +51,7 @@ class FrontendHooks
$styles[] = 'pointer-events:none'; $styles[] = 'pointer-events:none';
$styles[] = 'text-align: center'; $styles[] = 'text-align: center';
$styles[] = 'border-radius: 2px'; $styles[] = 'border-radius: 2px';
$message = '<div id="typo3-preview-info" style="' . implode($styles, ';') . '">PREVIEW</div>'; $message = '<div id="typo3-preview-info" style="' . implode(';', $styles) . '">PREVIEW</div>';
} }
return $message; return $message;
} }
......
...@@ -96,7 +96,7 @@ class TypoScriptFrontendControllerHook ...@@ -96,7 +96,7 @@ class TypoScriptFrontendControllerHook
$styles[] = 'pointer-events:none'; $styles[] = 'pointer-events:none';
$styles[] = 'text-align: center'; $styles[] = 'text-align: center';
$styles[] = 'border-radius: 2px'; $styles[] = 'border-radius: 2px';
$content .= '<div id="typo3-preview-info" style="' . implode($styles, ';') . '">PREVIEW</div>'; $content .= '<div id="typo3-preview-info" style="' . implode(';', $styles) . '">PREVIEW</div>';
} }
} }
return $content; return $content;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment