this should get rid of the Call to ftp://ftp. function error

This commit is contained in:
Daku 2012-01-25 16:40:19 +00:00
parent e10f863f1c
commit 4400b385b3
2 changed files with 12 additions and 6 deletions

View File

@ -38,7 +38,10 @@ class CustomViewImageTheme extends ViewImageTheme {
$html .= "<br>Source: <a href='$h_source'>link</a>"; $html .= "<br>Source: <a href='$h_source'>link</a>";
} }
if(!is_null($image->rating)) { if(!is_null($image->rating) && file_exists("ext/rating")) {
if($image->rating == null || $image->rating == "u"){
$image->rating = "u";
}
$h_rating = Ratings::rating_to_human($image->rating); $h_rating = Ratings::rating_to_human($image->rating);
$html .= "<br>Rating: $h_rating"; $html .= "<br>Rating: $h_rating";
} }

View File

@ -44,7 +44,10 @@ class CustomViewImageTheme extends ViewImageTheme {
$html .= "<br>Source: <a href='$h_source'>link</a>"; $html .= "<br>Source: <a href='$h_source'>link</a>";
} }
if(!is_null($image->rating)) { if(!is_null($image->rating) && file_exists("ext/rating")) {
if($image->rating == null || $image->rating == "u"){
$image->rating = "u";
}
$h_rating = Ratings::rating_to_human($image->rating); $h_rating = Ratings::rating_to_human($image->rating);
$html .= "<br>Rating: $h_rating"; $html .= "<br>Rating: $h_rating";
} }