mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-27 14:59:10 -04:00
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()
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user