ratings is not necessarily installed...

This commit is contained in:
Shish 2012-05-12 09:50:55 +01:00
parent 1ae3c8e0ba
commit 854a5d9833

View file

@ -42,8 +42,10 @@ class CustomViewImageTheme extends ViewImageTheme {
if($image->rating == null || $image->rating == "u"){
$image->rating = "u";
}
if(class_exists("Ratings")) {
$h_rating = Ratings::rating_to_human($image->rating);
$html .= "<br>Rating: $h_rating";
}
}
return $html;