Fix bug in Source: link in danbooru theme

This commit is contained in:
JJS 2009-01-24 19:49:26 -05:00 committed by Shish
parent 412750dec2
commit 74b62a1b38

View File

@ -31,7 +31,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://") {
$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>";