summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-15 02:51:16 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-15 02:51:16 +0000
commitad4f495e56d1b544b2f4278b41572cdd53fe300f (patch)
treee1a8959570efd57fccd57f5720b7873fc9a3660d /core/helpers
parent73c52c7140e0b867d02b658be396b91396c6713e (diff)
Rename events
album_created, photo_created -> item_created album_updated, photo_updated -> item_updated
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/album.php2
-rw-r--r--core/helpers/photo.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php
index fb79015e..e1875b3a 100644
--- a/core/helpers/album.php
+++ b/core/helpers/album.php
@@ -58,7 +58,7 @@ class album_Core {
mkdir(dirname($album->thumb_path()));
mkdir(dirname($album->resize_path()));
- module::event("album_created", $album);
+ module::event("item_created", $album);
return $album;
}
diff --git a/core/helpers/photo.php b/core/helpers/photo.php
index 9178ad8c..74ef02e0 100644
--- a/core/helpers/photo.php
+++ b/core/helpers/photo.php
@@ -79,7 +79,7 @@ class photo_Core {
$photo->add_to_parent($parent);
copy($filename, $photo->file_path());
- module::event("photo_created", $photo);
+ module::event("item_created", $photo);
// Build our thumbnail/resizes
graphics::generate($photo);