mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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_'])) {
|
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['pass'] = array_merge($route['pass'], $pass);
|
||||||
$route['named'] = $named;
|
$route['named'] = $named;
|
||||||
unset($route['_args_']);
|
unset($route['_args_']);
|
||||||
|
@ -255,7 +255,7 @@ class CakeRoute {
|
||||||
* @param string $action The current action name, used to match named parameter rules.
|
* @param string $action The current action name, used to match named parameter rules.
|
||||||
* @return array Array of ($pass, $named)
|
* @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();
|
$pass = $named = array();
|
||||||
$args = explode('/', $args);
|
$args = explode('/', $args);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue