10 function wfSpecialUserlogout() {
11 global $wgUser, $wgOut;
13 $oldName = $wgUser->getName();
15 $wgOut->setRobotPolicy( 'noindex,nofollow' );
19 wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) );
21 $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html );
22 $wgOut->returnToMain();