[FOLLOWUP][BUGFIX] Preview information should not conflict with frontend layout 81/54881/2
authorMarkus Klein <markus.klein@typo3.org>
Thu, 30 Nov 2017 09:29:48 +0000 (10:29 +0100)
committerBenjamin Kott <benjamin.kott@outlook.com>
Thu, 30 Nov 2017 09:31:49 +0000 (10:31 +0100)
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
typo3/sysext/workspaces/Classes/Hook/TypoScriptFrontendControllerHook.php

index 5669398..ef8025e 100644 (file)
@@ -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;
     }
index a60b743..4620bed 100644 (file)
@@ -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;