mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Making a method protected, it doesn't need to public really.
This commit is contained in:
parent
9cf940853b
commit
b8aa78ce9f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue