* @return string url of the archives
*/
function getArchivesUrl() {
+ if (forge_get_config('use_ssl')) {
+ $proto = 'https';
+ } else {
+ $proto = 'http';
+ }
if ($this->isPublic()) {
- return 'http://'.forge_get_config('lists_host').'/pipermail/'.$this->getName().'/';
+ return "$proto://".forge_get_config('lists_host').'/pipermail/'.$this->getName().'/';
} else {
- return 'http://'.forge_get_config('lists_host').'/mailman/private/'.$this->getName().'/';
+ return "$proto://".forge_get_config('lists_host').'/mailman/private/'.$this->getName().'/';
}
}