mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
afterRender should not be triggered when callbacks is false
This commit is contained in:
parent
d2010308d4
commit
6fc019e74d
1 changed files with 1 additions and 1 deletions
|
@ -1165,7 +1165,7 @@ class View extends Object {
|
||||||
$this->_currentType = $restore;
|
$this->_currentType = $restore;
|
||||||
$this->_current = $current;
|
$this->_current = $current;
|
||||||
|
|
||||||
if (isset($options['callbacks'])) {
|
if ($options['callbacks']) {
|
||||||
$this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($file, $element)));
|
$this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($file, $element)));
|
||||||
}
|
}
|
||||||
if (isset($options['cache'])) {
|
if (isset($options['cache'])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue