This commit is contained in:
Shish
2020-04-25 21:36:28 +01:00
parent 0b2e36303d
commit 2cae6cd273
9 changed files with 47 additions and 20 deletions

View File

@ -409,7 +409,8 @@ function get_base_href(): string
/**
* The opposite of the standard library's parse_url
*/
function unparse_url($parsed_url) {
function unparse_url($parsed_url)
{
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';
$port = isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '';