diff --git a/themes/danbooru/view.theme.php b/themes/danbooru/view.theme.php index 718e95cd..c5823dbd 100644 --- a/themes/danbooru/view.theme.php +++ b/themes/danbooru/view.theme.php @@ -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 .= "
Rating: $h_rating"; + } } return $html;