log image uploads
git-svn-id: file:///home/shish/svn/shimmie2/trunk@476 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
9def895268
commit
fcbe91e1fa
@ -69,6 +69,9 @@ class EventLog extends Extension {
|
||||
|
||||
global $user; // bad
|
||||
// TODO: log comments, uploads
|
||||
if(is_a($event, 'UploadingImageEvent')) {
|
||||
$this->add_to_log($user, 'Uploading Image', "Uploaded a new image");
|
||||
}
|
||||
if(is_a($event, 'CommentPostingEvent')) {
|
||||
$this->add_to_log($event->user, 'Comment Posting', "Posted a comment on image #{$event->image_id}");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user