This commit is contained in:
Naomi 2013-05-22 15:35:59 -04:00
parent eda21307ff
commit d82725cb54

View file

@ -509,12 +509,12 @@ SQL;
$protocol = empty($_SERVER['HTTPS']) ? "http" : "https"; $protocol = empty($_SERVER['HTTPS']) ? "http" : "https";
$serverName = $_SERVER['SERVER_NAME']; $serverName = $_SERVER['SERVER_NAME'];
$serverPort = $_SERVER['SERVER_PORT']; $serverPort = $_SERVER['SERVER_PORT'];
$subDir = $CC_CONFIG['baseDir']; $subDir = $CC_CONFIG['baseDir'];
if ($subDir[0] === "/") { if ($subDir[0] === "/") {
$subDir = substr($subDir, 1, strlen($subDir) - 1); $subDir = substr($subDir, 1, strlen($subDir) - 1);
} }
$baseUrl = "{$protocol}://{$serverName}:{$serverPort}/{$subDir}"; $baseUrl = "{$protocol}://{$serverName}:{$serverPort}/{$subDir}";