From 2791c3adc9c576d939e793750bed2d30f5963254 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 6 Oct 2009 00:11:14 +0000 Subject: 1.6.4 --- actions/upload.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actions/upload.php') diff --git a/actions/upload.php b/actions/upload.php index 228253ddd..3aa739414 100644 --- a/actions/upload.php +++ b/actions/upload.php @@ -192,6 +192,9 @@ // update user/group size for checking quota $image_repo_size += $sent_file['size']; + // plugins can register to be told when a new image has been uploaded + trigger_elgg_event('upload', 'tp_image', $file); + // successful upload so check if this is a new album and throw river event/notification if so if ($album->new_album == TP_NEW_ALBUM) { $album->new_album = TP_OLD_ALBUM; -- cgit v1.2.3