summaryrefslogtreecommitdiff
path: root/core/helpers/photo.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/photo.php')
-rw-r--r--core/helpers/photo.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php
index 46a33b56..900322d2 100644
--- a/core/helpers/photo.php
+++ b/core/helpers/photo.php
@@ -74,8 +74,12 @@ class photo_Core {
// @todo: parameterize these dimensions
// This saves the photo a second time, which is unfortunate but difficult to avoid.
- return $photo->set_thumbnail($filename, 200, 140)
+ $result = $photo->set_thumbnail($filename, 200, 140)
->set_resize($filename, 640, 480)
->save();
+
+ Event::run("gallery.photo_created", $photo);
+
+ return $result;
}
}