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://.
This commit is contained in:
parent
0fcfa49e75
commit
9ee2250e63
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class CustomViewImageTheme extends ViewImageTheme {
|
||||||
|
|
||||||
if(!is_null($image->source)) {
|
if(!is_null($image->source)) {
|
||||||
$h_source = html_escape($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;
|
$h_source = "http://" . $h_source;
|
||||||
}
|
}
|
||||||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||||
|
|
Reference in a new issue