diff options
Diffstat (limited to 'includes/SpecialUserlogout.php')
-rw-r--r-- | includes/SpecialUserlogout.php | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/includes/SpecialUserlogout.php b/includes/SpecialUserlogout.php index 6e464ced..d9952ea5 100644 --- a/includes/SpecialUserlogout.php +++ b/includes/SpecialUserlogout.php @@ -10,17 +10,10 @@ function wfSpecialUserlogout() { global $wgUser, $wgOut; - if (wfRunHooks('UserLogout', array(&$wgUser))) { - - $wgUser->logout(); - - wfRunHooks('UserLogoutComplete', array(&$wgUser)); - - $wgOut->setRobotpolicy( 'noindex,nofollow' ); - $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) ); - $wgOut->returnToMain(); - - } + $wgUser->logout(); + $wgOut->setRobotpolicy( 'noindex,nofollow' ); + $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) ); + $wgOut->returnToMain(); } |