Making dispatcher constructor public and removing return statement.

This commit is contained in:
predominant 2010-04-09 13:19:47 +10:00
parent e4d292bfa4
commit 94603b2cb7

View file

@ -72,12 +72,12 @@ class Dispatcher extends Object {
/**
* Constructor.
*/
function __construct($url = null, $base = false) {
public function __construct($url = null, $base = false) {
if ($base !== false) {
Configure::write('App.base', $base);
}
if ($url !== null) {
return $this->dispatch($url);
$this->dispatch($url);
}
}