Bug fix #118: Display server port
This commit is contained in:
parent
ea1c5fdfbf
commit
3bfbd3dd50
|
@ -6,6 +6,7 @@ function get_current_base_url()
|
|||
{
|
||||
$url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
|
||||
$url .= $_SERVER['SERVER_NAME'];
|
||||
$url .= $_SERVER['SERVER_PORT'] == 80 || $_SERVER['SERVER_PORT'] == 443 ? '' : ':'.$_SERVER['SERVER_PORT'];
|
||||
$url .= dirname($_SERVER['PHP_SELF']).'/';
|
||||
|
||||
return $url;
|
||||
|
|
Loading…
Reference in New Issue