Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Assigning the viewVars to $this too. It was empty before, the result …

…was no variables.
  • Loading branch information...
commit 98f2684c66b09b4959db641efc79c897dd46960d 1 parent dfe58d7
@renan renan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/View/Helper/CacheHelper.php
View
2  lib/Cake/View/Helper/CacheHelper.php
@@ -243,7 +243,7 @@ protected function _writeFile($content, $timestamp, $useCallbacks = false) {
$controller->layout = $this->layout = \'' . $this->_View->layout. '\';
$controller->request = $this->request = unserialize(\'' . str_replace("'", "\\'", serialize($this->request)) . '\');
$controller->theme = $this->theme = \'' . $this->_View->theme . '\';
- $controller->viewVars = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->viewVars)) . '\'));
+ $controller->viewVars = $this->viewVars = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->viewVars)) . '\'));
Router::setRequestInfo($controller->request);';
Please sign in to comment.
Something went wrong with that request. Please try again.