From db3f74dfa0f16ea71a299146b02c7da07dcccca9 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 14 Nov 2010 18:38:10 -0500 Subject: [PATCH] Moving a method around. --- cake/libs/dispatcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/dispatcher.php b/cake/libs/dispatcher.php index 75f3fd293..fe05ce058 100644 --- a/cake/libs/dispatcher.php +++ b/cake/libs/dispatcher.php @@ -106,10 +106,10 @@ class Dispatcher { 'controller' => Inflector::camelize($request->params['controller']) . 'Controller' )); } - $privateAction = $this->_isPrivateAction($request); + Router::setRequestInfo($request); - if ($privateAction) { + if ($this->_isPrivateAction($request)) { throw new PrivateActionException(array( 'controller' => Inflector::camelize($request->params['controller']) . "Controller", 'action' => $request->params['action']