From e32bfd6705128117fa7cf775dedc7c7749cbe249 Mon Sep 17 00:00:00 2001
From: Markus Klein <markus.klein@typo3.org>
Date: Thu, 30 Nov 2017 10:29:48 +0100
Subject: [PATCH] [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: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
---
 typo3/sysext/frontend/Classes/Hooks/FrontendHooks.php           | 2 +-
 .../Classes/Hook/TypoScriptFrontendControllerHook.php           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/frontend/Classes/Hooks/FrontendHooks.php b/typo3/sysext/frontend/Classes/Hooks/FrontendHooks.php
index 566939826111..ef8025e3c12d 100644
--- a/typo3/sysext/frontend/Classes/Hooks/FrontendHooks.php
+++ b/typo3/sysext/frontend/Classes/Hooks/FrontendHooks.php
@@ -51,7 +51,7 @@ class FrontendHooks
             $styles[] = 'pointer-events:none';
             $styles[] = 'text-align: center';
             $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;
     }
diff --git a/typo3/sysext/workspaces/Classes/Hook/TypoScriptFrontendControllerHook.php b/typo3/sysext/workspaces/Classes/Hook/TypoScriptFrontendControllerHook.php
index a60b7435001d..4620bedb1652 100644
--- a/typo3/sysext/workspaces/Classes/Hook/TypoScriptFrontendControllerHook.php
+++ b/typo3/sysext/workspaces/Classes/Hook/TypoScriptFrontendControllerHook.php
@@ -96,7 +96,7 @@ class TypoScriptFrontendControllerHook
                 $styles[] = 'pointer-events:none';
                 $styles[] = 'text-align: center';
                 $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;
-- 
GitLab