mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-05 14:40:44 -04:00
Use https if it's appropriate
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user