ratings is not necessarily installed...
This commit is contained in:
parent
1ae3c8e0ba
commit
854a5d9833
1 changed files with 2 additions and 0 deletions
|
@ -42,8 +42,10 @@ class CustomViewImageTheme extends ViewImageTheme {
|
||||||
if($image->rating == null || $image->rating == "u"){
|
if($image->rating == null || $image->rating == "u"){
|
||||||
$image->rating = "u";
|
$image->rating = "u";
|
||||||
}
|
}
|
||||||
|
if(class_exists("Ratings")) {
|
||||||
$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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
|
|
Reference in a new issue