Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes #6419, redirect with cached view page

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8193 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
commit e54dbd430f7f60f38d962cc27e9fe4811572e256 1 parent 6064019
gwoo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/libs/view/helpers/cache.php
4 cake/libs/view/helpers/cache.php
View
@@ -264,7 +264,8 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
$controller->params = $this->params = unserialize(stripslashes(\'' . addslashes(serialize($this->params)) . '\'));
$controller->action = $this->action = unserialize(\'' . serialize($this->action) . '\');
$controller->data = $this->data = unserialize(stripslashes(\'' . addslashes(serialize($this->data)) . '\'));
- $controller->themeWeb = $this->themeWeb = \'' . $this->themeWeb . '\';';
+ $controller->themeWeb = $this->themeWeb = \'' . $this->themeWeb . '\';
+ Router::setRequestInfo(array($this->params, array(\'base\' => $this->base, \'webroot\' => $this->webroot)));';
if ($useCallbacks == true) {
$file .= '
@@ -275,7 +276,6 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
}
$file .= '
- Router::setRequestInfo(array($this->params, array(\'base\' => $this->base, \'webroot\' => $this->webroot)));
$loadedHelpers = array();
$loadedHelpers = $this->_loadHelpers($loadedHelpers, $this->helpers);
foreach (array_keys($loadedHelpers) as $helper) {
Please sign in to comment.
Something went wrong with that request. Please try again.