mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Dispatch::baseUrl() needs optimization a little bit
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
c6c7474502
commit
b0aec35422
1 changed files with 0 additions and 5 deletions
|
@ -367,9 +367,6 @@ class Dispatcher extends Object {
|
|||
$this->webroot = $base .'/';
|
||||
return $base;
|
||||
}
|
||||
$file = null;
|
||||
|
||||
if ($baseUrl) {
|
||||
$file = '/' . basename($baseUrl);
|
||||
$base = dirname($baseUrl);
|
||||
|
||||
|
@ -385,8 +382,6 @@ class Dispatcher extends Object {
|
|||
$this->webroot .= $webroot . '/';
|
||||
}
|
||||
return $base . $file;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Restructure params in case we're serving a plugin.
|
||||
|
|
Loading…
Reference in a new issue