Permalink
Browse files

Fix issue with scripts_for_layout compatibility.

  • Loading branch information...
1 parent 5936fa5 commit 9cdf8042bf3a55cc5269eb77db4248254f035356 @markstory markstory committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/View.php
View
@@ -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,

0 comments on commit 9cdf804

Please sign in to comment.