mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
Fix BaseURL from Config
This commit is contained in:
parent
6fcc2a5288
commit
fa9baf320c
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
function baseurl()
|
||||
{
|
||||
if(isset($GLOBALS['CONFIG']['baseurl']))
|
||||
return $GLOBALS['CONFIG']['baseurl'];
|
||||
if(isset($GLOBALS['CONFIG']['BASEURL']))
|
||||
return $GLOBALS['CONFIG']['BASEURL'];
|
||||
|
||||
$base = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) ? 'https://' : 'http://';
|
||||
$base .= $_SERVER['HTTP_HOST'];
|
||||
|
|
Loading…
Reference in a new issue