Moving a method around.

This commit is contained in:
mark_story 2010-11-14 18:38:10 -05:00
parent 070066be18
commit db3f74dfa0

View file

@ -106,10 +106,10 @@ class Dispatcher {
'controller' => Inflector::camelize($request->params['controller']) . 'Controller' 'controller' => Inflector::camelize($request->params['controller']) . 'Controller'
)); ));
} }
$privateAction = $this->_isPrivateAction($request);
Router::setRequestInfo($request); Router::setRequestInfo($request);
if ($privateAction) { if ($this->_isPrivateAction($request)) {
throw new PrivateActionException(array( throw new PrivateActionException(array(
'controller' => Inflector::camelize($request->params['controller']) . "Controller", 'controller' => Inflector::camelize($request->params['controller']) . "Controller",
'action' => $request->params['action'] 'action' => $request->params['action']