rating_to_name no longer exists
was removed in commit eadf1d9e87419a3f570cc9e7e77082358a9af0db
This commit is contained in:
parent
90232b0a4c
commit
24f2741a50
@ -114,7 +114,7 @@ class Ratings extends Extension {
|
||||
}
|
||||
|
||||
public function onParseLinkTemplate(ParseLinkTemplateEvent $event) {
|
||||
$event->replace('$rating', $this->theme->rating_to_name($event->image->rating));
|
||||
$event->replace('$rating', $this->rating_to_human($event->image->rating));
|
||||
}
|
||||
|
||||
public function onSearchTermParse(SearchTermParseEvent $event) {
|
||||
@ -265,7 +265,7 @@ class Ratings extends Extension {
|
||||
global $database;
|
||||
if($old_rating != $rating){
|
||||
$database->Execute("UPDATE images SET rating=? WHERE id=?", array($rating, $image_id));
|
||||
log_info("rating", "Rating for Image #{$image_id} set to: ".$this->theme->rating_to_name($rating));
|
||||
log_info("rating", "Rating for Image #{$image_id} set to: ".$this->rating_to_human($rating));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user