Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

afterRender should not be triggered when callbacks is false

  • Loading branch information...
commit 6fc019e74d9f59610927f5f38915eff6b4c0f9ec 1 parent d201030
@ceeram ceeram authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/View/View.php
View
2  lib/Cake/View/View.php
@@ -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'])) {

0 comments on commit 6fc019e

Please sign in to comment.
Something went wrong with that request. Please try again.