summaryrefslogtreecommitdiffstats
path: root/modules/logout.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/logout.inc.php')
-rw-r--r--modules/logout.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/logout.inc.php b/modules/logout.inc.php
index 90cd225..1f22fb4 100644
--- a/modules/logout.inc.php
+++ b/modules/logout.inc.php
@@ -3,6 +3,14 @@
class Page_Logout extends Page
{
+ public function doPreprocess()
+ {
+ if (Request::any('noredirect') === false) {
+ User::load();
+ User::logout();
+ }
+ }
+
public function doRender()
{
Render::addTemplate('logout/_page');