Making a method protected, it doesn't need to public really.

This commit is contained in:
mark_story 2011-03-03 21:16:43 -05:00
parent 9cf940853b
commit b8aa78ce9f

View file

@ -228,7 +228,7 @@ class CakeRoute {
}
if (isset($route['_args_'])) {
list($pass, $named) = $this->parseArgs($route['_args_'], $route['controller'], $route['action']);
list($pass, $named) = $this->_parseArgs($route['_args_'], $route['controller'], $route['action']);
$route['pass'] = array_merge($route['pass'], $pass);
$route['named'] = $named;
unset($route['_args_']);
@ -255,7 +255,7 @@ class CakeRoute {
* @param string $action The current action name, used to match named parameter rules.
* @return array Array of ($pass, $named)
*/
public function parseArgs($args, $controller = null, $action = null) {
protected function _parseArgs($args, $controller = null, $action = null) {
$pass = $named = array();
$args = explode('/', $args);