Skip to content

Commit

Permalink
Move debug toolbar after head tag. Fixes #2545
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Feb 17, 2020
1 parent a6bb348 commit 1071ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Debug/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public function prepare(RequestInterface $request = null, ResponseInterface $res
if (strpos($response->getBody(), '<head>') !== false)
{
$response->setBody(
str_replace('<head>', $script . '<head>', $response->getBody())
str_replace('<head>', '<head>' . $script, $response->getBody())
);

return;
Expand Down

0 comments on commit 1071ea3

Please sign in to comment.