Permalink
Browse files

Merge pull request #33 from slywalker/2.0-dev_fix_TreeHelper

2.0 dev fix tree helper
  • Loading branch information...
2 parents 32652e6 + 0062dcf commit 581c633145457986fcdd45b7921c6f5a47f6837a @lorenzo lorenzo committed Jan 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 View/Helper/TreeHelper.php
@@ -138,7 +138,7 @@ public function generate($data, $settings = array ()) {
if ($indent === null && Configure::read('debug')) {
$indent = true;
}
- $view =& ClassRegistry:: getObject('view');
+ $view = $this->_View;
if ($model === null) {
$model = Inflector::classify($view->params['models'][0]);
}

0 comments on commit 581c633

Please sign in to comment.