Skip to content
This repository
Browse code

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
authored June 10, 2009

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

  1. 4  cake/libs/view/helpers/cache.php
4  cake/libs/view/helpers/cache.php
@@ -264,7 +264,8 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
264 264
 				$controller->params = $this->params = unserialize(stripslashes(\'' . addslashes(serialize($this->params)) . '\'));
265 265
 				$controller->action = $this->action = unserialize(\'' . serialize($this->action) . '\');
266 266
 				$controller->data = $this->data = unserialize(stripslashes(\'' . addslashes(serialize($this->data)) . '\'));
267  
-				$controller->themeWeb = $this->themeWeb = \'' . $this->themeWeb . '\';';
  267
+				$controller->themeWeb = $this->themeWeb = \'' . $this->themeWeb . '\';
  268
+				Router::setRequestInfo(array($this->params, array(\'base\' => $this->base, \'webroot\' => $this->webroot)));';
268 269
 
269 270
 		if ($useCallbacks == true) {
270 271
 			$file .= '
@@ -275,7 +276,6 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
275 276
 		}
276 277
 
277 278
 		$file .= '
278  
-				Router::setRequestInfo(array($this->params, array(\'base\' => $this->base, \'webroot\' => $this->webroot)));
279 279
 				$loadedHelpers = array();
280 280
 				$loadedHelpers = $this->_loadHelpers($loadedHelpers, $this->helpers);
281 281
 				foreach (array_keys($loadedHelpers) as $helper) {

0 notes on commit e54dbd4

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