From 034f30190eef5fad22c847e99787b33fac5178ab Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 15 Jan 2009 02:52:42 +0000 Subject: Rename 'xxx_changed' events to 'xxx_updated' --- core/controllers/albums.php | 2 +- core/controllers/photos.php | 2 +- modules/akismet/helpers/akismet_event.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/controllers/albums.php b/core/controllers/albums.php index 474e9ab2..0150314c 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("item_changed", $orig, $album); + module::event("item_updated", $orig, $album); log::success("content", "Updated album", "id\">view"); 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 19308f2d..ae1c6a3b 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("item_changed", $orig, $photo); + module::event("item_updated", $orig, $photo); log::success("content", "Updated photo", "id\">view"); message::success(t("Saved photo {{photo_title}}", array("photo_title" => $photo->title))); diff --git a/modules/akismet/helpers/akismet_event.php b/modules/akismet/helpers/akismet_event.php index 1f4d53d5..1a14699b 100644 --- a/modules/akismet/helpers/akismet_event.php +++ b/modules/akismet/helpers/akismet_event.php @@ -36,7 +36,7 @@ class akismet_event_Core { $comment->save(); } - static function comment_changed($old, $new) { + static function comment_updated($old, $new) { if ($old->state != "spam" && $new->state == "spam") { akismet::submit_spam($new); } else if ($old->state == "spam" && $new->state != "spam") { -- cgit v1.2.3