Skip to content

Commit

Permalink
Removing Dispatcher::_restructureParams() as it is no longer used.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 4, 2010
1 parent 87f1972 commit 6fe4631
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions cake/dispatcher.php
Expand Up @@ -366,29 +366,6 @@ function baseUrl() {
}
return $base . $file;
}
/**
* Restructure params in case we're serving a plugin.
*
* @param array $params Array on where to re-set 'controller', 'action', and 'pass' indexes
* @param boolean $reverse If true all the params are shifted one forward, so plugin becomes
* controller, controller becomes action etc. If false, plugin is made equal to controller
* @return array Restructured array
* @access protected
*/
function _restructureParams($params, $reverse = false) {
if ($reverse === true) {
extract(Router::getArgs($params['action']));
$params = array_merge($params, array(
'controller'=> $params['plugin'],
'action'=> $params['controller'],
'pass' => array_merge($pass, $params['pass']),
'named' => array_merge($named, $params['named'])
));
} else {
$params['plugin'] = $params['controller'];
}
return $params;
}

/**
* Get controller to use, either plugin controller or application controller
Expand Down

0 comments on commit 6fe4631

Please sign in to comment.