updates for the danbooru theme

This commit is contained in:
Shish
2010-01-03 08:55:43 +00:00
parent 3bb3ee2e86
commit ce6e8aa9ae
4 changed files with 21 additions and 3 deletions

View File

@ -144,6 +144,15 @@ class Ratings implements Extension {
return $set;
}
public static function rating_to_human($rating) {
switch($rating) {
case "s": return "Safe";
case "q": return "Questionable";
case "e": return "Explicit";
default: return "Unknown";
}
}
// FIXME: this is a bit ugly and guessey, should have proper options
private function can_rate() {
global $config, $user;