mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Changing the signature of View::_elementCache()
This commit is contained in:
parent
b2bb7bf2ae
commit
83903cd5b4
1 changed files with 5 additions and 2 deletions
|
@ -394,7 +394,7 @@ class View extends Object {
|
|||
}
|
||||
|
||||
if (isset($options['cache'])) {
|
||||
$contents = $this->_elementCache($name, $plugin, $data, $options);
|
||||
$contents = $this->_elementCache($name, $data, $options);
|
||||
if ($contents !== false) {
|
||||
return $contents;
|
||||
}
|
||||
|
@ -1107,7 +1107,10 @@ class View extends Object {
|
|||
* @param string $plugin Plugin name
|
||||
* @param array $options Element options
|
||||
*/
|
||||
protected function _elementCache($name, $plugin, $data, $options) {
|
||||
protected function _elementCache($name, $data, $options) {
|
||||
$plugin = null;
|
||||
list($plugin, $name) = $this->pluginSplit($name);
|
||||
|
||||
$underscored = null;
|
||||
if ($plugin) {
|
||||
$underscored = Inflector::underscore($plugin);
|
||||
|
|
Loading…
Reference in a new issue