Use request::protocol().

This commit is contained in:
Bharat Mediratta
2010-06-18 15:18:56 -07:00
parent f0a99ffc27
commit b1a6fd3e59

View File

@@ -19,7 +19,7 @@
*/
class slideshow_theme_Core {
static function page_bottom($theme) {
$proto = (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] === "off") ? "http" : "https";
$proto = request::protocol();
return "<script src=\"$proto://apps.cooliris.com/slideshow/go.js\" " .
"type=\"text/javascript\"></script>";
}