summaryrefslogtreecommitdiff
path: root/includes/SpecialUserlogout.php
blob: d9952ea59457c640d5e53d925b8ac74ba57fd2ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 *
 * @addtogroup SpecialPage
 */

/**
 * constructor
 */
function wfSpecialUserlogout() {
	global $wgUser, $wgOut;

	$wgUser->logout();
	$wgOut->setRobotpolicy( 'noindex,nofollow' );
	$wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) );
	$wgOut->returnToMain();
}