Fix BaseURL from Config

This commit is contained in:
MaZderMind 2015-07-03 13:00:08 +02:00
parent 6fcc2a5288
commit fa9baf320c

View file

@ -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'];