Add the other existing $skin.css/.js to the message files too to be consistent
[mediawiki.git] / includes / SpecialUserlogout.php
blob137eadb4a67614be6bb58486b7e454f3b7144fca
1 <?php
2 /**
3 * @file
4 * @ingroup SpecialPage
5 */
7 /**
8 * constructor
9 */
10 function wfSpecialUserlogout() {
11 global $wgUser, $wgOut;
13 $oldName = $wgUser->getName();
14 $wgUser->logout();
15 $wgOut->setRobotpolicy( 'noindex,nofollow' );
17 // Hook.
18 $injected_html = '';
19 wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) );
21 $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html );
22 $wgOut->returnToMain();