mirror of
https://github.com/YGGverse/yo-tools-php.git
synced 2026-03-31 09:45:29 +00:00
fix variable name
This commit is contained in:
parent
d8045c1d9b
commit
eab9343b2d
1 changed files with 3 additions and 3 deletions
|
|
@ -16,9 +16,9 @@ class Link
|
|||
{
|
||||
if (!parse_url($target, PHP_URL_HOST))
|
||||
{
|
||||
$scheme = parse_url($base, PHP_URL_SCHEME);
|
||||
$host = parse_url($base, PHP_URL_HOST);
|
||||
$port = parse_url($base, PHP_URL_PORT);
|
||||
$scheme = parse_url($source, PHP_URL_SCHEME);
|
||||
$host = parse_url($source, PHP_URL_HOST);
|
||||
$port = parse_url($source, PHP_URL_PORT);
|
||||
|
||||
return $scheme . '://' . $host . ($port ? ':' . $port : null) .
|
||||
'/' .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue