From b555fab819f25d9913cada5f800045f1cba77d8f Mon Sep 17 00:00:00 2001 From: ElementAB Date: Thu, 25 Dec 2014 01:38:51 -0600 Subject: [PATCH] Fixed information box link generation Fixed issue where the information box would generate an incorrect link for the image source if the source was given as https:// instead of http://. --- themes/lite/view.theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/lite/view.theme.php b/themes/lite/view.theme.php index b9e2db75..7c2bbf85 100644 --- a/themes/lite/view.theme.php +++ b/themes/lite/view.theme.php @@ -38,7 +38,7 @@ class CustomViewImageTheme extends ViewImageTheme { if(!is_null($image->source)) { $h_source = html_escape($image->source); - if(substr($image->source, 0, 7) != "http://") { + if(substr($image->source, 0, 7) != "http://" && substr($image->source, 0, 8) != "https://") { $h_source = "http://" . $h_source; } $html .= "
Source: link";