{"{$type}_path"};
$config_host = $config->{"{$type}_host"};
// Remove beginning/trailing slashes
$config_path = trim($config_path, '/');
$path = trim($path, '/');
$host = ($config_host !== '') ? $config_host : $_SERVER['HTTP_HOST'];
if ($config_path !== '')
{
$path = "{$config_path}/{$path}";
}
return "//{$host}/{$path}";
}
// End of functions.php