For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/includes/SpecialUserlogout.php =================================================================== --- trunk/phase3/includes/SpecialUserlogout.php (revision 35409) +++ trunk/phase3/includes/SpecialUserlogout.php (revision 35410) @@ -10,12 +10,13 @@ function wfSpecialUserlogout() { global $wgUser, $wgOut; + $oldName = $wgUser->getName(); $wgUser->logout(); $wgOut->setRobotpolicy( 'noindex,nofollow' ); // Hook. $injected_html = ''; - wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html) ); + wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) ); $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html ); $wgOut->returnToMain();