Use config option BASE_URL in getPocheUrl()

This commit is contained in:
Carsten Ringe 2015-06-09 19:51:01 +02:00
parent 7d6bd5670e
commit 6e22fc17d2

View file

@ -72,8 +72,14 @@ final class Tools
$serverport = '';
}
return 'http' . ($https ? 's' : '') . '://'
. $host . $serverport . $scriptname;
// check if BASE_URL is configured
if(BASE_URL != null && BASE_URL != '') {
$baseUrl = BASE_URL;
} else {
$baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport;
}
return $baseUrl . $scriptname;
}
/**