mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding in property copying until this branch gets merged with 2.0-request.
This commit is contained in:
parent
d6362f1857
commit
d048813af8
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,12 @@ class HelperCollection extends ObjectCollection {
|
|||
}
|
||||
}
|
||||
$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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue