Skip to content

Commit 2e73061

Browse files
authored
Merge pull request #2566 from MGatner/toolbar-head
Move debug toolbar after head tag. Fixes #2545
2 parents 6927298 + 1071ea3 commit 2e73061

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Debug/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public function prepare(RequestInterface $request = null, ResponseInterface $res
393393
if (strpos($response->getBody(), '<head>') !== false)
394394
{
395395
$response->setBody(
396-
str_replace('<head>', $script . '<head>', $response->getBody())
396+
str_replace('<head>', '<head>' . $script, $response->getBody())
397397
);
398398

399399
return;

0 commit comments

Comments
 (0)