Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changing the signature of View::_elementCache()

  • Loading branch information...
commit 83903cd5b493056d1f27ba364eae01d717c34639 1 parent b2bb7bf
@burzum burzum authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/Cake/View/View.php
View
7 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);
Please sign in to comment.
Something went wrong with that request. Please try again.