Themes can be served from an SSL server

This commit is contained in:
Evan Prodromou 2010-02-11 16:42:58 -05:00
parent 1773d12a24
commit a6ab9c4a3e
2 changed files with 4 additions and 3 deletions

View File

@ -123,7 +123,8 @@ $default =
'theme' =>
array('server' => null,
'dir' => null,
'path'=> null),
'path'=> null,
'ssl' => false),
'javascript' =>
array('server' => null,
'path'=> null),

View File

@ -110,9 +110,9 @@ class Theme
$server = common_config('site', 'server');
}
// XXX: protocol
$protocol = common_config('theme', 'ssl') ? 'https' : 'http';
$this->path = 'http://'.$server.$path.$name;
$this->path = $protocol . '://'.$server.$path.$name;
}
}