mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Making dispatcher constructor public and removing return statement.
This commit is contained in:
parent
e4d292bfa4
commit
94603b2cb7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue