Skip to content

Commit

Permalink
Changing the signature of View::_elementCache()
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Jul 6, 2012
1 parent b2bb7bf commit 83903cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Cake/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public function element($name, $data = array(), $options = array()) {
}

if (isset($options['cache'])) {
$contents = $this->_elementCache($name, $plugin, $data, $options);
$contents = $this->_elementCache($name, $data, $options);
if ($contents !== false) {
return $contents;
}
Expand Down Expand Up @@ -1107,7 +1107,10 @@ protected function _paths($plugin = null, $cached = true) {
* @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);
Expand Down

0 comments on commit 83903cd

Please sign in to comment.