Move logging up to the controllers so that our logging can operate at a more meta level

This commit is contained in:
Bharat Mediratta
2008-12-21 04:18:42 +00:00
parent 3ce32dab55
commit b3c05b1579
3 changed files with 4 additions and 4 deletions

View File

@@ -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"));
}