diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-12-25 23:43:44 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-25 23:43:44 +0000 |
| commit | 2c91a7e9ced0d2134682450dc1713b8e1b239dae (patch) | |
| tree | 25b7bd2cb67fba30e091ff8e250714250ae7ad4f /core/controllers/photos.php | |
| parent | 847d42682d02f2bd86ff0e5a247c38e1f55d86b9 (diff) | |
Rework log and message helpers to be parallel, but separate.
1) they now have their own matching severity constants
2) they both have convenience functions success(), info(), warning() and error()
3) they both have severity_class()
Diffstat (limited to 'core/controllers/photos.php')
| -rw-r--r-- | core/controllers/photos.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 04553bd1..13185283 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -56,8 +56,8 @@ class Photos_Controller extends Items_Controller { module::event("photo_changed", $photo); - log::add("content", "Updated photo", log::INFO, "<a href=\"photos/$photo->id\">view</a>"); - message::add(_("Successfully saved photo")); + log::success("content", "Updated photo", "<a href=\"photos/$photo->id\">view</a>"); + message::success(sprintf(_("Saved photo %s"), $photo->title)); print json_encode( array("result" => "success", |
