mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-31 20:20:36 -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:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user