Show image rating in image info box even when not logged in
This commit is contained in:
parent
e110b558b8
commit
001a1176cc
@ -103,10 +103,8 @@ class Ratings extends Extension {
|
||||
}
|
||||
|
||||
public function onImageInfoBoxBuilding(ImageInfoBoxBuildingEvent $event) {
|
||||
if($this->can_rate()) {
|
||||
$event->add_part($this->theme->get_rater_html($event->image->id, $event->image->rating), 80);
|
||||
}
|
||||
}
|
||||
|
||||
public function onImageInfoSet(ImageInfoSetEvent $event) {
|
||||
if($this->can_rate() && isset($_POST["rating"])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user