Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with adding of the debugbar at the last occurence in head #1429

Closed
victorchiriac89 opened this issue Jul 14, 2023 · 0 comments · Fixed by #1473
Closed

Issue with adding of the debugbar at the last occurence in head #1429

victorchiriac89 opened this issue Jul 14, 2023 · 0 comments · Fixed by #1473

Comments

@victorchiriac89
Copy link

victorchiriac89 commented Jul 14, 2023

In my project I am showcasing some ways to do specific tasks in Magento 1 and 2.
So, in the php file:
https://github.com/barryvdh/laravel-debugbar/blob/master/src/LaravelDebugbar.php
At line: 914-915 I see the function is at follows:
// Try to put the js/css directly before the < /head>
$pos = strripos($content, '< /head>');

If I add in the content another < /head> then the entire pages does not work properly anymore.

What is the purpose of finding the last occurrence and not the first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant