Introduce 'FetchChangesList' hook; see docs/hooks.txt for more information
[lhc/web/wiklou.git] / includes / SpecialUserlogout.php
1 <?php
2 /**
3 *
4 * @package MediaWiki
5 * @subpackage SpecialPage
6 */
7
8 /**
9 * constructor
10 */
11 function wfSpecialUserlogout() {
12 global $wgUser, $wgOut;
13
14 if (wfRunHooks('UserLogout', array(&$wgUser))) {
15
16 $wgUser->logout();
17
18 wfRunHooks('UserLogoutComplete', array(&$wgUser));
19
20 $wgOut->setRobotpolicy( 'noindex,nofollow' );
21 $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) );
22 $wgOut->returnToMain();
23
24 }
25 }
26
27 ?>