Skip to content

Commit

Permalink
Fix issue with scripts_for_layout compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 29, 2011
1 parent 5936fa5 commit 9cdf804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/View.php
Expand Up @@ -493,7 +493,7 @@ public function renderLayout($content, $layout = null) {
$this->getEventManager()->dispatch(new CakeEvent('View.beforeLayout', $this, array($layoutFileName)));

$scripts = implode("\n\t", $this->_scripts);
$scripts .= $this->get('meta') . $this->get('css') . $this->get('script');
$scripts .= $this->Blocks->get('meta') . $this->Blocks->get('css') . $this->Blocks->get('script');

$this->viewVars = array_merge($this->viewVars, array(
'content_for_layout' => $content,
Expand Down

0 comments on commit 9cdf804

Please sign in to comment.