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() --- core/controllers/admin_modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/controllers/admin_modules.php') diff --git a/core/controllers/admin_modules.php b/core/controllers/admin_modules.php index 152e49c3..c416a699 100644 --- a/core/controllers/admin_modules.php +++ b/core/controllers/admin_modules.php @@ -34,10 +34,10 @@ class Admin_Modules_Controller extends Admin_Controller { $desired = $this->input->post($module_name) == 1; if ($info->installed && !$desired) { module::uninstall($module_name); - message::add(sprintf(_("Uninstalled %s module"), $info->name)); + message::success(sprintf(_("Uninstalled %s module"), $info->name)); } else if (!$info->installed && $desired) { module::install($module_name); - message::add(sprintf(_("Installed %s module"), $info->name)); + message::success(sprintf(_("Installed %s module"), $info->name)); } } url::redirect("admin/modules"); -- cgit v1.2.3