Skip to content

Commit

Permalink
Adding in property copying until this branch gets merged with 2.0-req…
Browse files Browse the repository at this point in the history
…uest.
  • Loading branch information
markstory committed Aug 11, 2010
1 parent d6362f1 commit d048813
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cake/libs/view/helper_collection.php
Expand Up @@ -61,6 +61,12 @@ public function load($helper, $settings = array(), $enable = true) {
}
}
$this->{$name} = new $helperClass($this->_View, $settings);

$vars = array('base', 'webroot', 'here', 'params', 'action', 'data', 'theme', 'plugin');
foreach ($vars as $var) {
$this->{$name}->{$var} = $this->_View->{$var};
}

if (!in_array($name, $this->_attached)) {
$this->_attached[] = $name;
}
Expand Down

0 comments on commit d048813

Please sign in to comment.