mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix issue with scripts_for_layout compatibility.
This commit is contained in:
parent
5936fa5930
commit
9cdf8042bf
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ class View extends Object {
|
||||||
$this->getEventManager()->dispatch(new CakeEvent('View.beforeLayout', $this, array($layoutFileName)));
|
$this->getEventManager()->dispatch(new CakeEvent('View.beforeLayout', $this, array($layoutFileName)));
|
||||||
|
|
||||||
$scripts = implode("\n\t", $this->_scripts);
|
$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(
|
$this->viewVars = array_merge($this->viewVars, array(
|
||||||
'content_for_layout' => $content,
|
'content_for_layout' => $content,
|
||||||
|
|
Loading…
Reference in a new issue