Fix bug in Source: link in danbooru theme
This commit is contained in:
parent
412750dec2
commit
74b62a1b38
@ -31,7 +31,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://") {
|
||||
$h_source = "http://" . $h_source;
|
||||
}
|
||||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user