mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Using full base when $url is empty.
This commit is contained in:
parent
94f9f7afeb
commit
b752766d6c
1 changed files with 5 additions and 1 deletions
|
@ -741,7 +741,11 @@ class Router {
|
|||
$extension = $output = $mapped = $q = $frag = null;
|
||||
|
||||
if (empty($url)) {
|
||||
return isset($path['here']) ? $path['here'] : '/';
|
||||
$output = isset($path['here']) ? $path['here'] : '/';
|
||||
if ($full && defined('FULL_BASE_URL')) {
|
||||
$output = FULL_BASE_URL . $output;
|
||||
}
|
||||
return $output;
|
||||
} elseif (is_array($url)) {
|
||||
if (isset($url['base']) && $url['base'] === false) {
|
||||
$base = null;
|
||||
|
|
Loading…
Reference in a new issue