Fix content language message cache (table of contents test depends on this)
[mediawiki.git] / includes / SpecialUserlogout.php
blob52aa73d29b7349f8b834a9c74182d4517c05c529
1 <?php
2 /**
4 * @package MediaWiki
5 * @subpackage SpecialPage
6 */
8 /**
9 * constructor
11 function wfSpecialUserlogout() {
12 global $wgUser, $wgOut, $returnto;
14 $wgUser->logout();
15 $wgOut->mCookies = array();
16 $wgOut->setRobotpolicy( 'noindex,nofollow' );
17 $wgOut->addHTML( wfMsg( 'logouttext' ) );
18 $wgOut->returnToMain();