Permalink
Browse files

Changing the signature of View::_elementCache()

  • Loading branch information...
1 parent b2bb7bf commit 83903cd5b493056d1f27ba364eae01d717c34639 @burzum burzum committed Jul 6, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/Cake/View/View.php
@@ -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;
}
@@ -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);

0 comments on commit 83903cd

Please sign in to comment.