Skip to content

Commit

Permalink
fix up the css render
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Nov 22, 2012
1 parent 7277943 commit defefc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Core/Contents/View/Helper/GlobalContentsHelper.php
Expand Up @@ -65,8 +65,7 @@ public function renderTemplate($data = array()) {
throw new InvalidArgumentException('Can not find template to render');
}

$return = $this->__renderCss($data);
$return .= $this->__renderHtml($data);
return $this->__renderCss($data) . $this->__renderHtml($data);
}

/**
Expand Down Expand Up @@ -100,7 +99,7 @@ private function __renderCss($data) {
}

if(!empty($data['GlobalLayout']['css'])) {
return sprintf('<style type="text/css">%s</style>', $data['Layout']['css']);
return sprintf("<style type=\"text/css\">\n%s\n</style>", $data['Layout']['css']);
}
}

Expand Down

0 comments on commit defefc6

Please sign in to comment.