From 2c91a7e9ced0d2134682450dc1713b8e1b239dae Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 25 Dec 2008 23:43:44 +0000 Subject: 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() --- modules/user/controllers/logout.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user/controllers/logout.php') diff --git a/modules/user/controllers/logout.php b/modules/user/controllers/logout.php index 5f4057af..e0da9a9f 100644 --- a/modules/user/controllers/logout.php +++ b/modules/user/controllers/logout.php @@ -21,8 +21,8 @@ class Logout_Controller extends Controller { public function index() { $user = user::active(); user::logout(); - log::add("user", "User $user->name logged out", - log::INFO, html::anchor("user/$user->id", $user->name)); + log::info("user", sprintf(_("User %s logged out"), $user->name), + html::anchor("user/$user->id", $user->name)); if ($this->input->get("continue")) { url::redirect($this->input->get("continue")); } -- cgit v1.2.3