aboutsummaryrefslogtreecommitdiff
path: root/actions/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-10-06 00:11:14 +0000
committerCash Costello <cash.costello@gmail.com>2009-10-06 00:11:14 +0000
commit2791c3adc9c576d939e793750bed2d30f5963254 (patch)
treee3253ec052e4508a6623059f3a973bafa65adcc7 /actions/upload.php
parent8fdbddca3d0f4712036675d5e32d5db9a8a7931b (diff)
downloadelgg-2791c3adc9c576d939e793750bed2d30f5963254.tar.gz
elgg-2791c3adc9c576d939e793750bed2d30f5963254.tar.bz2
1.6.4
Diffstat (limited to 'actions/upload.php')
-rw-r--r--actions/upload.php3
1 files changed, 3 insertions, 0 deletions
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;