Merge pull request #586 from im-mi/image-info-tweaks

Image info tweaks
This commit is contained in:
Shish
2016-09-26 15:21:46 -05:00
committed by GitHub
3 changed files with 14 additions and 8 deletions

View File

@@ -103,9 +103,7 @@ 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);
}
$event->add_part($this->theme->get_rater_html($event->image->id, $event->image->rating, $this->can_rate()), 80);
}
public function onImageInfoSet(ImageInfoSetEvent $event) {