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 dd60840e4b
commit 06cfda990d

View File

@ -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>";