forked from Cavemanon/cavepaintings
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:
@ -7,9 +7,11 @@
|
||||
*/
|
||||
class UploadingImageEvent extends Event {
|
||||
var $image;
|
||||
var $ok;
|
||||
|
||||
public function UploadingImageEvent($image) {
|
||||
$this->image = $image;
|
||||
$this->ok = false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -22,7 +22,7 @@ class ImageIO extends Extension {
|
||||
}
|
||||
|
||||
if(is_a($event, 'UploadingImageEvent')) {
|
||||
$this->add_image($event->image);
|
||||
$event->ok = $this->add_image($event->image);
|
||||
}
|
||||
|
||||
if(is_a($event, 'ImageDeletionEvent')) {
|
||||
|
Reference in New Issue
Block a user