Skip to content
This repository
Browse code

Changing the signature of View::_elementCache()

  • Loading branch information...
commit 83903cd5b493056d1f27ba364eae01d717c34639 1 parent b2bb7bf
Florian Krämer authored July 06, 2012

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. 7  lib/Cake/View/View.php
7  lib/Cake/View/View.php
@@ -394,7 +394,7 @@ public function element($name, $data = array(), $options = array()) {
394 394
 		}
395 395
 
396 396
 		if (isset($options['cache'])) {
397  
-			$contents = $this->_elementCache($name, $plugin, $data, $options);
  397
+			$contents = $this->_elementCache($name, $data, $options);
398 398
 			if ($contents !== false) {
399 399
 				return $contents;
400 400
 			}
@@ -1107,7 +1107,10 @@ protected function _paths($plugin = null, $cached = true) {
1107 1107
  * @param string $plugin Plugin name
1108 1108
  * @param array $options Element options
1109 1109
  */
1110  
-	protected function _elementCache($name, $plugin, $data, $options) {
  1110
+	protected function _elementCache($name, $data, $options) {
  1111
+		$plugin = null;
  1112
+		list($plugin, $name) = $this->pluginSplit($name);
  1113
+
1111 1114
 		$underscored = null;
1112 1115
 		if ($plugin) {
1113 1116
 			$underscored = Inflector::underscore($plugin);

0 notes on commit 83903cd

Please sign in to comment.
Something went wrong with that request. Please try again.