summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/controllers/albums.php2
-rw-r--r--core/controllers/photos.php2
-rw-r--r--core/helpers/album.php2
-rw-r--r--core/helpers/photo.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php
index ef1d2eb4..474e9ab2 100644
--- a/core/controllers/albums.php
+++ b/core/controllers/albums.php
@@ -152,7 +152,7 @@ class Albums_Controller extends Items_Controller {
$album->description = $form->edit_album->description->value;
$album->save();
- module::event("album_changed", $orig, $album);
+ module::event("item_changed", $orig, $album);
log::success("content", "Updated album", "<a href=\"albums/$album->id\">view</a>");
message::success(t("Saved album {{album_title}}", array("album_title" => $album->title)));
diff --git a/core/controllers/photos.php b/core/controllers/photos.php
index b177b205..19308f2d 100644
--- a/core/controllers/photos.php
+++ b/core/controllers/photos.php
@@ -78,7 +78,7 @@ class Photos_Controller extends Items_Controller {
$photo->description = $form->edit_photo->description->value;
$photo->save();
- module::event("photo_changed", $orig, $photo);
+ module::event("item_changed", $orig, $photo);
log::success("content", "Updated photo", "<a href=\"photos/$photo->id\">view</a>");
message::success(t("Saved photo {{photo_title}}", array("photo_title" => $photo->title)));
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);