From 9cdf8042bf3a55cc5269eb77db4248254f035356 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 29 Dec 2011 11:58:05 -0500 Subject: [PATCH] Fix issue with scripts_for_layout compatibility. --- lib/Cake/View/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 55f81f2da..ce35bae0f 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -493,7 +493,7 @@ class View extends Object { $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,