Skip to content

Commit

Permalink
afterRender should not be triggered when callbacks is false
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Oct 24, 2012
1 parent d201030 commit 6fc019e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/View.php
Expand Up @@ -1165,7 +1165,7 @@ protected function _renderElement($file, $data, $options) {
$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'])) {
Expand Down

0 comments on commit 6fc019e

Please sign in to comment.