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/welcome.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/welcome.php')
| -rw-r--r-- | core/controllers/welcome.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index a5c8c9d6..637ab642 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -206,8 +206,8 @@ class Welcome_Controller extends Template_Controller { } if ($photo_count > 0) { - log::add("content", "(scaffold) Added $photo_count photos", log::INFO, - html::anchor("albums/$parent_id", "View album")); + log::success("content", "(scaffold) Added $photo_count photos" + html::anchor("albums/$parent_id", "View album")); } url::redirect("welcome"); @@ -245,11 +245,11 @@ class Welcome_Controller extends Template_Controller { } if ($photo_count > 0) { - log::add("content", "(scaffold) Added $photo_count photos"); + log::success("content", "(scaffold) Added $photo_count photos"); } if ($album_count > 0) { - log::add("content", "(scaffold) Added $album_count albums"); + log::success("content", "(scaffold) Added $album_count albums"); } url::redirect("welcome"); } |
