diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 9fe700b10e0..3545aad5b69 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -99,7 +99,7 @@ public function dispatch($url = null, $additionalParams = array()) { } if (is_array($url)) { - $url = $this->__extractParams($url, $additionalParams); + $url = $this->_extractParams($url, $additionalParams); } else { if ($url) { $_GET['url'] = $url; @@ -112,7 +112,7 @@ public function dispatch($url = null, $additionalParams = array()) { if ($this->asset($url) || $this->cached($url)) { $this->_stop(); } - $controller =& $this->__getController(); + $controller = $this->_getController(); if (!is_object($controller)) { Router::setRequestInfo(array($this->params, array('base' => $this->base, 'webroot' => $this->webroot))); @@ -221,9 +221,8 @@ protected function _invoke(&$controller, $params) { * @param array $url Array or request parameters * @param array $additionalParams Array of additional parameters. * @return string $url The generated url string. - * @access private */ - function __extractParams($url, $additionalParams = array()) { + protected function _extractParams($url, $additionalParams = array()) { $defaults = array('pass' => array(), 'named' => array(), 'form' => array()); $this->params = array_merge($defaults, $url, $additionalParams); return Router::url($url); @@ -368,9 +367,8 @@ public function baseUrl() { * * @param array $params Array of parameters * @return mixed name of controller if not loaded, or object if loaded - * @access private */ - function &__getController() { + protected function &_getController() { $controller = false; $ctrlClass = $this->__loadController($this->params); if (!$ctrlClass) {