lite/danbooru themes now show rating in statistics box

This commit is contained in:
Daku 2012-01-24 03:14:27 +00:00
parent 5a2326614a
commit 602f76da53
2 changed files with 10 additions and 0 deletions

View file

@ -38,6 +38,11 @@ class CustomViewImageTheme extends ViewImageTheme {
$html .= "<br>Source: <a href='$h_source'>link</a>";
}
if(!is_null($image->rating)) {
$h_rating = Ratings::rating_to_human($image->rating);
$html .= "<br>Rating: $h_rating";
}
return $html;
}
}

View file

@ -44,6 +44,11 @@ class CustomViewImageTheme extends ViewImageTheme {
$html .= "<br>Source: <a href='$h_source'>link</a>";
}
if(!is_null($image->rating)) {
$h_rating = Ratings::rating_to_human($image->rating);
$html .= "<br>Rating: $h_rating";
}
return $html;
}
}