a bunch of fixes

This commit is contained in:
Shish
2009-01-22 05:42:44 -08:00
parent bda38bff6c
commit d98962a30e
12 changed files with 28 additions and 40 deletions

View File

@ -47,7 +47,7 @@ class Ratings implements Extension {
if($event instanceof ImageInfoSetEvent) {
global $user;
if($user->is_admin()) {
send_event(new RatingSetEvent($event->image_id, $user, $_POST['rating']));
send_event(new RatingSetEvent($event->image->id, $user, $_POST['rating']));
}
}