afterRender should not be triggered when callbacks is false

This commit is contained in:
Ceeram 2012-10-25 01:16:16 +02:00
parent d2010308d4
commit 6fc019e74d

View file

@ -1165,7 +1165,7 @@ class View extends Object {
$this->_currentType = $restore;
$this->_current = $current;
if (isset($options['callbacks'])) {
if ($options['callbacks']) {
$this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($file, $element)));
}
if (isset($options['cache'])) {