allow parts of the upload process to say 'no, not ok!'
git-svn-id: file:///home/shish/svn/shimmie2/trunk@234 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -74,8 +74,9 @@ class Upload extends Extension {
|
||||
$image = new Image($file['tmp_name'], $file['name'], $_POST['tags']);
|
||||
|
||||
if($image->is_ok()) {
|
||||
send_event(new UploadingImageEvent($image));
|
||||
$ok = true;
|
||||
$event = new UploadingImageEvent($image);
|
||||
send_event($event);
|
||||
$ok = $event->ok;
|
||||
}
|
||||
else {
|
||||
$this->theme->display_upload_error("Error with ".html_escape($file['name']),
|
||||
|
Reference in New Issue
Block a user