summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/slideshow/helpers/slideshow_theme.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/slideshow/helpers/slideshow_theme.php b/modules/slideshow/helpers/slideshow_theme.php
index b3e30f4c..915daec2 100644
--- a/modules/slideshow/helpers/slideshow_theme.php
+++ b/modules/slideshow/helpers/slideshow_theme.php
@@ -19,7 +19,8 @@
*/
class slideshow_theme_Core {
static function head($theme) {
- return "<script src=\"http://lite.piclens.com/current/piclens_optimized.js\"" .
+ $proto = (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] === "off") ? "http" : "https";
+ return "<script src=\"$proto://lite.piclens.com/current/piclens_optimized.js\"" .
"type=\"text/javascript\"></script>";
}
}