mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-18 15:49:54 -04:00
Move logging up to the controllers so that our logging can operate at a more meta level
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
class Logout_Controller extends Controller {
|
||||
public function index() {
|
||||
user::logout();
|
||||
log::add("user", "User $user->name logged out",
|
||||
log::INFO, 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