Skip to content

Commit

Permalink
BUGFIX Having <header tag in HTML causes requirements to double. See h…
Browse files Browse the repository at this point in the history
  • Loading branch information
miiihi committed Dec 22, 2011
1 parent 26a6f2e commit 433ac63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Requirements.php
Expand Up @@ -636,7 +636,7 @@ function restore() {
function includeInHTML($templateFile, $content) {
if(isset($_GET['debug_profile'])) Profiler::mark("Requirements::includeInHTML");

if(strpos($content, '</head') !== false && ($this->css || $this->javascript || $this->customCSS || $this->customScript || $this->customHeadTags)) {
if((strpos($content, '</head>') !== false || strpos($content, '</head ') !== false) && ($this->css || $this->javascript || $this->customCSS || $this->customScript || $this->customHeadTags)) {
$requirements = '';
$jsRequirements = '';

Expand Down

0 comments on commit 433ac63

Please sign in to comment.